Typically you would not construct a Logger directly but instead use logging().getLogger()
or LogManager.instance().getLogger()
.
Main logging method.
Message severity.
Message body.
Convenience for log(LogLevel.TRACE, message, ...args)
Convenience for log(LogLevel.DEBUG, message, ...args)
Convenience for log(LogLevel.INFO, message, ...args)
Convenience for log(LogLevel.WARNING, message, ...args)
Convenience for log(LogLevel.ERROR, message, ...args)
Convenience for log(LogLevel.CRITICAL, message, ...args)
.
After logging the message, it also throws an Error
type exception with the same message
and the location of the original call to critical()
as the error's cause
property.
Use
logging.getLogger()
method (fromLogManager
) to get a new instance of a Logger.