All Superinterfaces:
org.slf4j.Logger
All Known Implementing Classes:
UnitLoggerImpl

public interface UnitLogger extends org.slf4j.Logger
Log facade for units and their applications, provides various convenience functions on top of the general Logger interface.
  • Field Summary

    Fields inherited from interface org.slf4j.Logger

    ROOT_LOGGER_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debugSimTime(OperatingSystemAccess<? extends OperatingSystem> os, String format, Object... arguments)
    Convenience method to uniformly print the log statement including the current simulation time.
    Convenience method to determine the current path of the log files generated for this unit.
    void
    infoSimTime(OperatingSystemAccess<? extends OperatingSystem> os, String format, Object... arguments)
    Convenience method to uniformly print the log statement including the current simulation time.
    void
    warnSimTime(OperatingSystemAccess<? extends OperatingSystem> os, String format, Object... arguments)
    Convenience method to uniformly print the log statement including the current simulation time.

    Methods inherited from interface org.slf4j.Logger

    atDebug, atError, atInfo, atLevel, atTrace, atWarn, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isEnabledForLevel, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, makeLoggingEventBuilder, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
  • Method Details

    • infoSimTime

      void infoSimTime(OperatingSystemAccess<? extends OperatingSystem> os, String format, Object... arguments)
      Convenience method to uniformly print the log statement including the current simulation time.
    • debugSimTime

      void debugSimTime(OperatingSystemAccess<? extends OperatingSystem> os, String format, Object... arguments)
      Convenience method to uniformly print the log statement including the current simulation time.
    • warnSimTime

      void warnSimTime(OperatingSystemAccess<? extends OperatingSystem> os, String format, Object... arguments)
      Convenience method to uniformly print the log statement including the current simulation time.
    • getUnitLogDirectory

      @Nullable Path getUnitLogDirectory()
      Convenience method to determine the current path of the log files generated for this unit. Returns null if no appender for the logging could be found.