Class Logging
java.lang.Object
com.codename1.backend.log.Logging
The logging configuration: per-logger levels and where lines go.
Levels come from logging.level.<name> settings, the keys Spring Boot uses.
A logger takes the level of the longest name that is it or a package above
it, and logging.level.root (INFO when unset) covers everything else:
logging.level.root=WARN
logging.level.com.example=INFO
logging.level.com.example.push=DEBUG
The server applies its configuration when it starts; setLevel(String, Level)
changes one at run time, and every logger sees the change on its next line.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe prefix of the per-logger level settings. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidReads everylogging.level.*setting ofconfig, replacing the levels set before.static voidSets the level ofloggerand every logger under it; null clears a level set before.static voidSends every line tosinkfrom now on; null restores standard output.
-
Field Details
-
LEVEL_PREFIX
-
-
Method Details
-
configure
Reads everylogging.level.*setting ofconfig, replacing the levels set before. Called by the server when it starts.- Throws:
IOException- when a setting names no level
-
setLevel
-
setSink
Sends every line tosinkfrom now on; null restores standard output.
-