public interface Logging extends Capacity
Modifier and Type | Method and Description |
---|---|
void |
debug(message : Object,
parameters : Object*)
Print the given message at debug logging level.
|
void |
debug(messageProvider : Supplier<String>)
Print the given message at debug logging level.
|
void |
error(message : Object,
[exception : Throwable],
parameters : Object*)
Print the given message at error logging level.
|
void |
error(messageProvider : Supplier<String>)
Print the given message at error logging level.
|
Logger |
getLogger()
Replies the backend logger.
|
int |
getLogLevel()
Replies the logging level.
|
void |
info(message : Object,
parameters : Object*)
Print the given message at information logging level.
|
void |
info(messageProvider : Supplier<String>)
Print the given message at information logging level.
|
boolean |
isDebugLogEnabled()
Replies if the logging system is displaying the debugging messages.
|
boolean |
isErrorLogEnabled()
Replies if the logging system is displaying the errors.
|
boolean |
isInfoLogEnabled()
Replies if the logging system is displaying the information messages.
|
boolean |
isWarningLogEnabled()
Replies if the logging system is displaying the warnings.
|
void |
println(message : Object)
Deprecated.
|
void |
setLoggingName(name : String)
Change the name used for logging.
|
void |
setLogLevel(level : int)
Set the logging level.
|
void |
warning(message : Object,
[exception : Throwable],
parameters : Object*)
Print the given message at warning logging level.
|
void |
warning(messageProvider : Supplier<String>)
Print the given message at warning logging level.
|
def
setLoggingName(name : String) : void
Logging
name
- the name used for logging.@Deprecated
def
println(message : Object) : void
Logging.info(Object,Object...)
.Logging
This function is deprecated. Please use
Logging.info(Object,Object...)
in place of println
.
message
- the elements to display.def
error(message : Object,
[exception : Throwable],
parameters : Object*) : void
Logging
message
- the elements to display. The format of the message must follow MessageFormat
.exception
- the exception that is the cause of the error.parameters
- the values to dynamically insert into the message.def
error(messageProvider : Supplier<String>) : void
Logging
messageProvider
- provides the error message.def
warning(message : Object,
[exception : Throwable],
parameters : Object*) : void
Logging
message
- the elements to display. The format of the message must follow MessageFormat
.exception
- the exception that is the cause of the error.parameters
- the values to dynamically insert into the message.def
warning(messageProvider : Supplier<String>) : void
Logging
messageProvider
- provides the warning message.def
info(message : Object,
parameters : Object*) : void
Logging
message
- the elements to display. The format of the message must follow MessageFormat
.parameters
- the values to dynamically insert into the message.def
info(messageProvider : Supplier<String>) : void
Logging
messageProvider
- provides the info message.def
debug(message : Object,
parameters : Object*) : void
Logging
message
- the elements to display. The format of the message must follow MessageFormat
.parameters
- the values to dynamically insert into the message.def
debug(messageProvider : Supplier<String>) : void
Logging
messageProvider
- provides the debug message.@Pure
def
isErrorLogEnabled() : boolean
Logging
true
if the errors are logged,
false
if not.@Pure
def
isWarningLogEnabled() : boolean
Logging
true
if the warnings are logged,
false
if not.@Pure
def
isInfoLogEnabled() : boolean
Logging
true
if the information messages are logged,
false
if not.@Pure
def
isDebugLogEnabled() : boolean
Logging
true
if the debugging messages are logged,
false
if not.@Pure
def
getLogLevel() : int
Logging
0
for no logging, 1
for error,
2
for warning, 3
for info,
5
for debug.def
setLogLevel(level : int) : void
Logging
level
- 0
or lower for no logging, 1
for error,
2
for warning, 3
for info,
4
or higher for debug.Copyright © 2021 the original authors or authors.