Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:logginevent [2007/10/11 09:12]
ravith
dev:logginevent [2009/07/06 20:36] (current)
Line 43: Line 43:
   * **FATAL**  - Fatal Errors   * **FATAL**  - Fatal Errors
  
-**__//''These levels are defined as constants in lib_log.inc''//__** \\+**__//''These levels are defined as constants in lib_log.inc''//__** \\ \\
 The log level defaults to **INFO**. \\ The log level defaults to **INFO**. \\
  
Line 58: Line 58:
    * **UNCLASSIFIED**    * **UNCLASSIFIED**
  
-**__//''These levels are defined as constants in lib_log.inc''//__** \\+**__//''These levels are defined as constants in lib_log.inc''//__** \\ \\
 The senisitvity level defaults to **NOT_SENSITIVE** \\ The senisitvity level defaults to **NOT_SENSITIVE** \\
  
Line 85: Line 85:
 **//''Name:''//** debug.inc **//''Name:''//** debug.inc
  
-The default method of logging (to file or to database) can be configured in the sysconf.inc under $conf['default_logger']. The log messages will be printed as HTML if the configured logger cannot be created or not found.+The default method of logging (to file or to database) can be configured in the sysconf.inc under $conf['default_logger']. \\The log messages will be printed as HTML if the configured logger cannot be created or not found. \\
 A custom logger can be created by extending the class Logger and overriding the log_message() function. A custom logger can be created by extending the class Logger and overriding the log_message() function.
  
Line 102: Line 102:
 </code> </code>
  
 +**//''Usage:''//** \\
 +The logging API **MUST** be used in the following and similar instances, additionally the module developer is free to use it else where.\\
 + \\
 +  * When a write commit is made to the database
 +  * On a configuration change
 +  * On a important event in the business logic of the module
 +  * On an error
 +  * On a security violation or suspicious action
  
 +The log messages should be recorded with the appropriate logging level, and sensitivity level, to make event audit more efficient.
 \\ \\
 **//''Author:''//** \\ **//''Author:''//** \\
 //Ravith Botejue.// //Ravith Botejue.//

Navigation
QR Code
QR Code dev:logginevent (generated for current page)