Brekeke SIP Server Wiki

3.5 LogLevel

Package:

com.brekeke.common

 

LogLevel is a class that contains log level values. This is used for logging. Level is set for console output (standard output) or file output.

 

Log level values are as follows:

Variable name Value Level
LOG_LEVEL_SILENT 0 No Logging
LOG_LEVEL_SYSTEM 1 System
LOG_LEVEL_ERROR 2 Error
LOG_LEVEL_WARNING 4 Warning
LOG_LEVEL_EXCEPTION 8 Exception
LOG_LEVEL_STATUS 16 Status
LOG_LEVEL_DETAIL 32 Detail
LOG_LEVEL_DEBUG 64 Debug
LOG_LEVEL_ALL 255 All

You can specify multiple log levels by logical add (OR). For example, if you want to output only Error and Detail logs, the log level will be 34 (2 OR 32).

Log level = 2 OR 32 = 34

 

LogLevel

Constructor:

 public LogLevel( int levelConsole, int levelFile )

Description: Creates a new LogLevel object.

Parameters: levelConsole – Log level for console output.

 

 

Yes No
Suggest Edit