Class LogHelper
java.lang.Object
com.codebarrel.jira.plugin.automation.util.LogHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<org.apache.logging.log4j.core.appender.FileAppender> Creates and appender that appends to automation-jira-performance.csvstatic voidLogs debug message if debug logging is enabled for the provided logger.static voidLogs info message if info logging is enabled for the provided logger.static voidLogs warn message if warn logging is enabled for the provided logger.
-
Constructor Details
-
LogHelper
public LogHelper()
-
-
Method Details
-
createPerformanceAppender
public static Optional<org.apache.logging.log4j.core.appender.FileAppender> createPerformanceAppender()Creates and appender that appends to automation-jira-performance.csv- Returns:
- File appender if the home directory can be accessed.
-
logInfo
Logs info message if info logging is enabled for the provided logger.- Parameters:
logger- the logger instance to use for loggingmessage- the message to logparams- the parameters to include in the message
-
logWarn
Logs warn message if warn logging is enabled for the provided logger.- Parameters:
logger- the logger instance to use for loggingmessage- the message to logparams- the parameters to include in the message
-
logDebug
Logs debug message if debug logging is enabled for the provided logger.- Parameters:
logger- the logger instance to use for loggingmessage- the message to logparams- the parameters to include in the message
-