Class LogUtil
java.lang.Object
com.inductiveautomation.ignition.common.util.LogUtil
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classprotected static class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic LoggerExCreates a LoggerEx at the given logger path.static LoggerExCreates a LoggerEx at the given logger path.getMap()static LoggerExgetModuleLogger(String moduleKey, String loggerName) Creates a LoggerEx at the given logger path, first pre-pending the module name.static LoggerExgetModuleLogger(String moduleKey, String loggerName, Object identObject) Creates a LoggerEx at the given logger path, first pre-pending the module name.static StringgetModuleLoggerName(String moduleKey, String loggerName) static org.slf4j.MarkergetSystemEventMarker(String systemId) static LoggerExgetSystemLogger(String loggerName) Creates a LoggerEx with an "ignition" prefix.static LoggerExgetSystemLogger(String loggerName, Object identObject) Creates a LoggerEx with an "ignition" prefix and an ident object which will get prepended to each message.static voidlogOncePerMinute(LoggerEx log, org.apache.log4j.Level level, String message) Like the other overload, with secondary level nullstatic voidlogOncePerMinute(LoggerEx log, org.apache.log4j.Level level, String message, Throwable t) LikelogOncePerMinute(LoggerEx, Level, Level, String, Throwable), with secondary level nullstatic voidlogOncePerMinute(LoggerEx log, org.apache.log4j.Level level, org.apache.log4j.Level secondaryLevel, String message) Logs once with the priority, and then with the secondary priority for any further occurrences within 1 minute.static voidlogOncePerMinute(LoggerEx log, org.apache.log4j.Level level, org.apache.log4j.Level secondaryLevel, String message, Throwable t) Same aslogOncePerMinute(LoggerEx, Level, Level, String)with the addition of logging aThrowablestatic voidlogOncePerMinute(org.apache.log4j.Logger log, org.apache.log4j.Level level, String message) Deprecated.static voidlogOncePerMinute(org.apache.log4j.Logger log, org.apache.log4j.Level level, org.apache.log4j.Level secondaryLevel, String message) Deprecated.protected static void
- 
Constructor Details- 
LogUtilpublic LogUtil()
 
- 
- 
Method Details- 
getMap
- 
getSystemEventMarker
- 
getSystemLoggerCreates a LoggerEx with an "ignition" prefix.- Parameters:
- loggerName- The name of the logger, with "." separating the hierarchy levels
 
- 
getSystemLoggerCreates a LoggerEx with an "ignition" prefix and an ident object which will get prepended to each message.
- 
getModuleLoggerCreates a LoggerEx at the given logger path, first pre-pending the module name. The module name is expected to be a bundle key to look up the name of the module. If no value is found, the key itself will be used.- Parameters:
- loggerName- The name of the logger, with "." separating the hierarchy levels
 
- 
getModuleLoggerpublic static LoggerEx getModuleLogger(@Nonnull String moduleKey, String loggerName, Object identObject) Creates a LoggerEx at the given logger path, first pre-pending the module name. The module name is expected to be a bundle key to look up the name of the module. If no value is found, the key itself will be used. Also allows an ident object, which will get pre-pended to each message.
- 
getModuleLoggerName
- 
getLoggerCreates a LoggerEx at the given logger path. For modules, the first name should be your module name.- Parameters:
- loggerName- The name of the logger, with "." separating the hierarchy levels
 
- 
getLoggerCreates a LoggerEx at the given logger path. For modules, the first name should be your module name. Also allows an ident object, which will get pre-pended to each message.
- 
logOncePerMinute@Deprecated public static void logOncePerMinute(org.apache.log4j.Logger log, org.apache.log4j.Level level, String message) Deprecated.Like the other overload, but doesn't log again within the time frame.
- 
logOncePerMinute@Deprecated public static void logOncePerMinute(org.apache.log4j.Logger log, org.apache.log4j.Level level, org.apache.log4j.Level secondaryLevel, String message) Deprecated.Logs once with the priority, and then with the secondary priority for any further occurrences within 1 minute. If secondary priority is null, does not log again.
- 
logOncePerMinuteLike the other overload, with secondary level null
- 
logOncePerMinutepublic static void logOncePerMinute(@Nonnull LoggerEx log, @Nullable org.apache.log4j.Level level, @Nullable org.apache.log4j.Level secondaryLevel, String message) Logs once with the priority, and then with the secondary priority for any further occurrences within 1 minute. If secondary priority is null, does not log again.
- 
logOncePerMinutepublic static void logOncePerMinute(LoggerEx log, org.apache.log4j.Level level, String message, Throwable t) LikelogOncePerMinute(LoggerEx, Level, Level, String, Throwable), with secondary level null
- 
logOncePerMinutepublic static void logOncePerMinute(@Nonnull LoggerEx log, @Nullable org.apache.log4j.Level level, @Nullable org.apache.log4j.Level secondaryLevel, String message, Throwable t) Same aslogOncePerMinute(LoggerEx, Level, Level, String)with the addition of logging aThrowable
- 
startMaintenanceprotected static void startMaintenance()
 
-