3.4 Logging Class
Package:
com.brekeke.common
Logging is a class to output logs. This object is passed to the plug-in through init() method as an argument.
1. print
Method:
public void print( String str, LogLevel loglevel, int require )
Description: If the current log level meets the given required log level, then the string is output.
Parameters:
- str – The String to be output
- loglevel – Current log level
- require – Required log level
2. println
Method:
public void println( LogLevel loglevel, int require )
Description: If the current log level meets the given required log level, a new line character (\n) is output.
Parameters:
- loglevel – Current log level
- require – Required log level
3. println
Method:
public void println( String str, LogLevel loglevel, int require )
Description: If the current log level meets the given required log level, then the string and a new line character (\n) is output.
Parameters:
- str – The String to be output
- loglevel – Current log level
- require – Required log level