Package co.elastic.apm.agent.impl.error
Class Log
- java.lang.Object
-
- co.elastic.apm.agent.impl.error.Log
-
- All Implemented Interfaces:
Recyclable
public class Log extends java.lang.Object implements Recyclable
Additional information added when logging the error.
-
-
Constructor Summary
Constructors Constructor Description Log()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLevel()The severity of the record.java.lang.StringgetLoggerName()The name of the logger instance used.java.lang.StringgetMessage()The additionally logged error message.java.lang.StringgetParamMessage()A parametrized message.voidresetState()resets pooled object state so it can be reusedLogwithLevel(java.lang.String level)The severity of the record.LogwithLoggerName(java.lang.String loggerName)The name of the logger instance used.LogwithMessage(java.lang.String message)The additionally logged error message.LogwithParamMessage(java.lang.String paramMessage)A parametrized message.
-
-
-
Method Detail
-
getLevel
public java.lang.String getLevel()
The severity of the record.
-
withLevel
public Log withLevel(java.lang.String level)
The severity of the record.
-
getLoggerName
public java.lang.String getLoggerName()
The name of the logger instance used.
-
withLoggerName
public Log withLoggerName(java.lang.String loggerName)
The name of the logger instance used.
-
getMessage
@Nullable public java.lang.String getMessage()
The additionally logged error message. (Required)
-
withMessage
public Log withMessage(java.lang.String message)
The additionally logged error message. (Required)
-
getParamMessage
@Nullable public java.lang.String getParamMessage()
A parametrized message. E.g. 'Could not connect to %s'. The property message is still required, and should be equal to the param_message, but with placeholders replaced. In some situations the param_message is used to group errors together. The string is not interpreted, so feel free to use whichever placeholders makes sense in the client languange.
-
withParamMessage
public Log withParamMessage(java.lang.String paramMessage)
A parametrized message. E.g. 'Could not connect to %s'. The property message is still required, and should be equal to the param_message, but with placeholders replaced. In some situations the param_message is used to group errors together. The string is not interpreted, so feel free to use whichever placeholders makes sense in the client languange.
-
resetState
public void resetState()
Description copied from interface:Recyclableresets pooled object state so it can be reused- Specified by:
resetStatein interfaceRecyclable
-
-