Package com.ppm.logging
Class FileLoggerDelegate
- java.lang.Object
-
- com.ppm.logging.FileLoggerDelegate
-
- All Implemented Interfaces:
ConsoleLogger,FileLogger,LogOperations
public final class FileLoggerDelegate extends Object implements FileLogger
File Logger Delegate- Author:
- Pedro T. Oliveira
-
-
Field Summary
-
Fields inherited from interface com.ppm.logging.FileLogger
FILE_LOGGER_PREFIX
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileLoggerdebug(Object message)Log a message as Debug level.FileLoggerdebug(Object message, Throwable t)FileLoggererror(Object message)Log a message as Error level.FileLoggererror(Object message, Throwable t)LogOperationsfatal(Object message)Log a message as Fatal level.ConsoleLoggerfatal(Object message, Throwable t)FileLoggerinfo(Object message)Log a message as Info level.FileLoggerinfo(Object message, Throwable t)LogKeykey(String key)Add a key to logLogDatalog(Object object)Log an Object Data with the Default Configurated PatternLogDatalog(Object object, MessagePatterns pattern)Log an Object Data with the Specified PatternLogDatalog(Object object, Throwable t)Log an Object Data with the Default Configurated PatternLogDatalog(Object object, Throwable t, MessagePatterns pattern)Log an Object Data with the Specified PatternLogDatalogData(Map<String,Object> logData)Log a collection of key and value messages.LogDatalogData(Map<String,Object> logData, Throwable t)FileLoggerwarn(Object message)Log a message as Warn level.FileLoggerwarn(Object message, Throwable t)
-
-
-
Method Detail
-
info
public FileLogger info(Object message)
Description copied from interface:LogOperationsLog a message as Info level.- Specified by:
infoin interfaceLogOperations
-
warn
public FileLogger warn(Object message)
Description copied from interface:LogOperationsLog a message as Warn level.- Specified by:
warnin interfaceLogOperations
-
error
public FileLogger error(Object message)
Description copied from interface:LogOperationsLog a message as Error level.- Specified by:
errorin interfaceLogOperations
-
debug
public FileLogger debug(Object message)
Description copied from interface:LogOperationsLog a message as Debug level.- Specified by:
debugin interfaceLogOperations
-
info
public FileLogger info(Object message, Throwable t)
- Specified by:
infoin interfaceConsoleLogger- Parameters:
message- log messaget- exception
-
warn
public FileLogger warn(Object message, Throwable t)
- Specified by:
warnin interfaceConsoleLogger- Parameters:
message- log messaget- exception
-
error
public FileLogger error(Object message, Throwable t)
- Specified by:
errorin interfaceConsoleLogger- Parameters:
message- log messaget- exception
-
debug
public FileLogger debug(Object message, Throwable t)
- Specified by:
debugin interfaceConsoleLogger- Parameters:
message- log messaget- exception
-
logData
public LogData logData(Map<String,Object> logData)
Description copied from interface:LogOperationsLog a collection of key and value messages.- Specified by:
logDatain interfaceLogOperations- Returns:
- a LogData
-
logData
public LogData logData(Map<String,Object> logData, Throwable t)
- Specified by:
logDatain interfaceConsoleLogger- Parameters:
logData- Map key-value with log datat- exception to be logged- Returns:
- a LogData
-
key
public LogKey key(String key)
Description copied from interface:LogOperationsAdd a key to log- Specified by:
keyin interfaceLogOperations- Parameters:
key- key value. Can be formated with "=" or without it.- Returns:
- SplunkLogKey
-
fatal
public LogOperations fatal(Object message)
Description copied from interface:LogOperationsLog a message as Fatal level.- Specified by:
fatalin interfaceLogOperations
-
log
public LogData log(Object object)
Description copied from interface:LogOperationsLog an Object Data with the Default Configurated Pattern- Specified by:
login interfaceLogOperations- Parameters:
object- to Log- Returns:
- a LogData
-
log
public LogData log(Object object, MessagePatterns pattern)
Description copied from interface:LogOperationsLog an Object Data with the Specified Pattern- Specified by:
login interfaceLogOperations- Parameters:
object- to logpattern- A MessagePatterns- Returns:
- a LogData
-
fatal
public ConsoleLogger fatal(Object message, Throwable t)
- Specified by:
fatalin interfaceConsoleLogger- Parameters:
message- log messaget- exception
-
log
public LogData log(Object object, Throwable t)
Description copied from interface:ConsoleLoggerLog an Object Data with the Default Configurated Pattern- Specified by:
login interfaceConsoleLogger- Parameters:
object- to Logt- exception to be logged- Returns:
- a LogData
-
log
public LogData log(Object object, Throwable t, MessagePatterns pattern)
Description copied from interface:ConsoleLoggerLog an Object Data with the Specified Pattern- Specified by:
login interfaceConsoleLogger- Parameters:
object- to logt- exception to be loggedpattern- selected MessagePatterns- Returns:
- a LogData
-
-