Package com.ppm.logging
Interface LogOperations
-
- All Known Subinterfaces:
FileLogger,RemoteLogger
- All Known Implementing Classes:
FileLoggerDelegate,LoggerHolder,RemoteLoggerDelegate
public interface LogOperationsCommon Log Operations- Author:
- Pedro T. Oliveira
-
-
Method Summary
All Methods Instance Methods Abstract 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 PatternLogDatalogData(Map<String,Object> logData)Log a collection of key and value messages.LogOperationswarn(Object message)Log a message as Warn level.
-
-
-
Method Detail
-
info
LogOperations info(Object message)
Log a message as Info level.- Parameters:
message-
-
warn
LogOperations warn(Object message)
Log a message as Warn level.- Parameters:
message-
-
error
LogOperations error(Object message)
Log a message as Error level.- Parameters:
message-
-
debug
LogOperations debug(Object message)
Log a message as Debug level.- Parameters:
message-
-
fatal
LogOperations fatal(Object message)
Log a message as Fatal level.- Parameters:
message-
-
logData
LogData logData(Map<String,Object> logData)
Log a collection of key and value messages.- Parameters:
logData-- Returns:
- a LogData
-
key
LogKey key(String key)
Add a key to log- Parameters:
key- key value. Can be formated with "=" or without it.- Returns:
- SplunkLogKey
-
log
LogData log(Object object)
Log an Object Data with the Default Configurated Pattern- Parameters:
object- to Log- Returns:
- a LogData
-
log
LogData log(Object object, MessagePatterns pattern)
Log an Object Data with the Specified Pattern- Parameters:
object- to logpattern- A MessagePatterns- Returns:
- a LogData
-
-