java.lang.Object
xyz.ronella.logging.LoggerPlus.GroupLogger
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
LoggerPlus.MethodLogger
- Enclosing class:
- LoggerPlus
Groups logging output by name.
- Since:
- 1.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionGroupLogger(String groupName, LoggerPlus logPlus, boolean withHeader) Create an instance of GroupLogger. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Add a closing header when the method exits.voidAccepts a debug message at method level.voidAccepts a String.format(ted) debug message.voidAccepts a supplier of a message at method level.voidAccepts an error message at method level.voidAccepts a String.format(ted) error message.voidAccepts a supplier of a message at method level.voidAccepts an info message at method level.voidAccepts a String.format(ted) info message.voidAccepts a supplier of a message at method level.voidAccepts a trace message at method level.voidAccepts a String.format(ted) trace message.voidAccepts a supplier of a message at method level.voidAccepts a warning message at method level.voidAccepts a String.format(ted) warn message.voidAccepts a supplier of a message at method level.
-
Constructor Details
-
GroupLogger
Create an instance of GroupLogger.- Parameters:
groupName- The group name to associate the log messages.logPlus- An instance of LoggerPlus.withHeader- Place a log header message in each method class.
-
-
Method Details
-
close
public void close()Add a closing header when the method exits.- Specified by:
closein interfaceAutoCloseable
-
debug
Accepts a debug message at method level.- Parameters:
message- The message.
-
debug
Accepts a supplier of a message at method level.- Parameters:
message- The supplier of message.
-
debug
Accepts a String.format(ted) debug message.- Parameters:
format- The format for the message.values- The values of the String.format(ted) message- Since:
- 1.2.0
-
info
Accepts an info message at method level.- Parameters:
message- The info message.
-
info
Accepts a supplier of a message at method level.- Parameters:
message- The supplier of message.
-
info
Accepts a String.format(ted) info message.- Parameters:
format- The format for the message.values- The values of the String.format(ted) message- Since:
- 1.2.0
-
error
Accepts an error message at method level.- Parameters:
message- The error message.
-
error
Accepts a supplier of a message at method level.- Parameters:
message- The supplier of message.
-
error
Accepts a String.format(ted) error message.- Parameters:
format- The format for the message.values- The values of the String.format(ted) message- Since:
- 1.2.0
-
warn
Accepts a warning message at method level.- Parameters:
message- The warning message.
-
warn
Accepts a supplier of a message at method level.- Parameters:
message- The supplier of message.
-
warn
Accepts a String.format(ted) warn message.- Parameters:
format- The format for the message.values- The values of the String.format(ted) message- Since:
- 1.2.0
-
trace
Accepts a trace message at method level.- Parameters:
message- The trace message.
-
trace
Accepts a supplier of a message at method level.- Parameters:
message- The supplier of message.
-
trace
Accepts a String.format(ted) trace message.- Parameters:
format- The format for the message.values- The values of the String.format(ted) message- Since:
- 1.2.0
-