Package com.snowbound.common.utils
Class StructuredLogger.LogBuilder
- java.lang.Object
-
- com.snowbound.common.utils.StructuredLogger.LogBuilder
-
- Enclosing class:
- StructuredLogger
public class StructuredLogger.LogBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LogBuilder(org.slf4j.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug()
StructuredLogger.LogBuilder
documentId(java.lang.String documentId)
StructuredLogger.LogBuilder
duration(long duration)
void
error()
void
info()
StructuredLogger.LogBuilder
level(java.lang.String level)
StructuredLogger.LogBuilder
message(java.lang.String message)
StructuredLogger.LogBuilder
pageIndex(int pageIndex)
void
publish()
StructuredLogger.LogBuilder
rmErrorCode(int rmErrorCode)
StructuredLogger.LogBuilder
safeMessageArg(java.lang.Object o)
StructuredLogger.LogBuilder
safeMessageArgs(java.lang.Object... os)
StructuredLogger.LogBuilder
throwable(java.lang.Throwable t)
void
trace()
StructuredLogger.LogBuilder
unsafeMessageArg(java.lang.String unsafeString)
void
warn()
-
-
-
Method Detail
-
message
public StructuredLogger.LogBuilder message(java.lang.String message)
-
rmErrorCode
public StructuredLogger.LogBuilder rmErrorCode(int rmErrorCode)
-
pageIndex
public StructuredLogger.LogBuilder pageIndex(int pageIndex)
-
duration
public StructuredLogger.LogBuilder duration(long duration)
-
level
public StructuredLogger.LogBuilder level(java.lang.String level)
-
documentId
public StructuredLogger.LogBuilder documentId(java.lang.String documentId)
-
unsafeMessageArg
public StructuredLogger.LogBuilder unsafeMessageArg(java.lang.String unsafeString)
-
throwable
public StructuredLogger.LogBuilder throwable(java.lang.Throwable t)
-
safeMessageArg
public StructuredLogger.LogBuilder safeMessageArg(java.lang.Object o)
-
safeMessageArgs
public StructuredLogger.LogBuilder safeMessageArgs(java.lang.Object... os)
-
trace
public void trace()
-
debug
public void debug()
-
info
public void info()
-
warn
public void warn()
-
error
public void error()
-
publish
public void publish()
-
-