Package com.ppm.logging
Class LoggerHolder
- java.lang.Object
-
- com.ppm.logging.LoggerHolder
-
- All Implemented Interfaces:
LogOperations
public class LoggerHolder extends Object implements LogOperations
Logger Holder- Author:
- Pedro T. Oliveira
-
-
Constructor Summary
Constructors Constructor Description LoggerHolder(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogOperationsdebug(Object message)Log a message as Debug level.LogOperationserror(Object message)Log a message as Error level.LogOperationsfatal(Object message)Log a message as Fatal level.LogOperationsinfo(Object message)Log a message as Info level.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 PatternLogDataHolderlogData(Map<String,Object> logData)Log a collection of key and value messages.LogOperationswarn(Object message)Log a message as Warn level.
-
-
-
Constructor Detail
-
LoggerHolder
public LoggerHolder(Class<?> clazz)
- Parameters:
clazz-
-
-
Method Detail
-
info
public LogOperations info(Object message)
Description copied from interface:LogOperationsLog a message as Info level.- Specified by:
infoin interfaceLogOperations
-
warn
public LogOperations warn(Object message)
Description copied from interface:LogOperationsLog a message as Warn level.- Specified by:
warnin interfaceLogOperations
-
error
public LogOperations error(Object message)
Description copied from interface:LogOperationsLog a message as Error level.- Specified by:
errorin interfaceLogOperations
-
debug
public LogOperations debug(Object message)
Description copied from interface:LogOperationsLog a message as Debug level.- Specified by:
debugin interfaceLogOperations
-
logData
public LogDataHolder logData(Map<String,Object> logData)
Description copied from interface:LogOperationsLog a collection of key and value messages.- Specified by:
logDatain interfaceLogOperations- 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
-
-