Package com.ppm.logging
Class RemoteLoggerDelegate
- java.lang.Object
-
- com.ppm.logging.RemoteLoggerDelegate
-
- All Implemented Interfaces:
LogOperations,RemoteLogger
public class RemoteLoggerDelegate extends Object implements RemoteLogger
Remote Logger Delegate- Author:
- Pedro T. Oliveira
-
-
Field Summary
-
Fields inherited from interface com.ppm.logging.RemoteLogger
REMOTE_LOGGER_PREFIX
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteLoggerdebug(Object message)Log a message as Debug level.RemoteLoggererror(Object message)Log a message as Error level.LogOperationsfatal(Object message)Log a message as Fatal level.RemoteLoggerinfo(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 PatternLogDatalogData(Map<String,Object> logData)Log a collection of key and value messages.RemoteLoggerwarn(Object message)Log a message as Warn level.
-
-
-
Method Detail
-
info
public RemoteLogger info(Object message)
Description copied from interface:LogOperationsLog a message as Info level.- Specified by:
infoin interfaceLogOperations
-
warn
public RemoteLogger warn(Object message)
Description copied from interface:LogOperationsLog a message as Warn level.- Specified by:
warnin interfaceLogOperations
-
error
public RemoteLogger error(Object message)
Description copied from interface:LogOperationsLog a message as Error level.- Specified by:
errorin interfaceLogOperations
-
debug
public RemoteLogger debug(Object message)
Description copied from interface:LogOperationsLog a message as Debug level.- Specified by:
debugin interfaceLogOperations
-
fatal
public LogOperations fatal(Object message)
Description copied from interface:LogOperationsLog a message as Fatal level.- Specified by:
fatalin interfaceLogOperations
-
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
-
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
-
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
-
-