Package com.acrolinx.sidebar.utils
Class LoggingUtils
- java.lang.Object
-
- com.acrolinx.sidebar.utils.LoggingUtils
-
public final class LoggingUtils extends java.lang.ObjectSet up the integration's logging.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetLogFileLocation()Retrieve the current path to the integrations log file.static voidresetLoggingContext()Resets the current Logging Context.static voidsetupLogging(java.lang.String applicationName)Call this method on your integration's startup.
-
-
-
Method Detail
-
setupLogging
public static void setupLogging(java.lang.String applicationName) throws java.io.IOException, ch.qos.logback.core.joran.spi.JoranExceptionCall this method on your integration's startup. This will initialize the logs as specified in the Acrolinx Coding Guidance.- Parameters:
applicationName- the integration's name e.g. AcrolinxForEditorName- Throws:
java.io.IOExceptionch.qos.logback.core.joran.spi.JoranException
-
getLogFileLocation
public static java.lang.String getLogFileLocation()
Retrieve the current path to the integrations log file. The path is OS-specific.- Returns:
- path to the integrations logging file.
-
resetLoggingContext
public static void resetLoggingContext()
Resets the current Logging Context.
-
-