Package com.prineside.tdi2.utils.logging
Class SystemOutPlatformLogger
java.lang.Object
com.prineside.tdi2.utils.logging.SystemOutPlatformLogger
- All Implemented Interfaces:
PlatformLogger
A regular System.out logger, usually used by the Desktop and Headless backends.
Does not write to System.err to make sure all messages are properly synchronized.
Allows to wrap messages into ASCII terminal color tags.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SystemOutPlatformLogger
public SystemOutPlatformLogger(boolean colored, boolean padded) - Parameters:
colored
- if true, debug/warn/error messages will be wrapped into ASCII color escape codes for terminalspadded
- if true, tags and message levels will be aligned into columns
-
-
Method Details
-
debug
- Specified by:
debug
in interfacePlatformLogger
-
info
- Specified by:
info
in interfacePlatformLogger
-
warn
- Specified by:
warn
in interfacePlatformLogger
-
error
- Specified by:
error
in interfacePlatformLogger
-