Log - Logging (Tracing)

About

A log file is:

  • a list of activities an application performed.
  • and/or a common way to store data.

They are point in time event registration of line of text and therefore fall in the category of time serie

Usage

Example

  • execution/request log:
    • web server:
      • web log (Apache - Web Log (Activity Log) - that stores the Http request
      • error
    • cron
  • connection log:
    • ftp
    • ssh

Management

Creator

The creation of log is done via a library.

Example of Java Logger Library

Format

See Log - Format

Processing

When the log file are becoming too big, you need to:

(Standard|Specification)

Severity

RFC5424 specifies that the order of severity is assumed to be numerically ascending from most important to least important.

Example: logging levels are prioritized from 0 to 6 (highest to lowest):

{ 
  error: 0, 
  warn: 1, 
  info: 2, 
  http: 3,
  verbose: 4, 
  debug: 5, 
  silly: 6 
}

Documentation / Reference


Powered by ComboStrap