Class: ConsoleAppender

ConsoleAppender

ConsoleAppender extends SimpleLogAppender printing messages on the console.

new ConsoleAppender(level, category)

Constructor for ConsoleAppender.
Parameters:
Name Type Description
level String The threshold level at which the SimpleLogAppender is created. It should be one of "DEBUG", "INFO", "WARN", "ERROR" and "FATAL". If not or wrongly specified INFO is assumed.
category String The category this appender should listen to. If not specified the appender will get log for every available category. See SimpleLogAppender#setCategoryFilter.
Throws:
if the environment does not have any console object or if such console is currently inaccessible.
Type
IllegalStateException

Extends

Method Summary

log
Publish a log message on the console.

Inherited Methods

Method Detail

log(category, level, mex, header)

Publish a log message on the console.
Parameters:
Name Type Description
category String the logger category that produced the given message.
level String the logging level of the given message. It should be one of DEBUG INFO WARN ERROR FATAL.
mex String the message to be logged. It could be a String instance, an Error instance or any other object, provided that it has a toString method.
header String a header for the message
Overrides: