Class MstLog4TineLog_Facade


  • public class MstLog4TineLog_Facade
    extends java.lang.Object
    MstLog's can be written to the Tine Log/Protocol Server and read back
    This is the facade for it
    only public class in package
    provides appender, reader for mstLoggings mapped to the Tine Log Server
    Version:
    1.0.0
    Author:
    ws
    • Method Detail

      • getTineLogAppender

        public final ILogAppender getTineLogAppender​(LogMsg logMsg,
                                                     IWriter<ClsLogInfo> optionalAppenderSpy)
                                              throws java.lang.NullPointerException
        Parameters:
        logMsg - only used on first call but then must be nonnull
        optionalAppenderSpy - may be null, for debugging to spy what is written (Clogs -> LogMsg which are written to Tine)
        Returns:
        nonnull lazy created singleton tineLogAppender for the current PC
        Throws:
        java.lang.NullPointerException - on first call if logMsg is null
      • getSystemContext

        public final java.lang.String getSystemContext()
      • isSystemInfo

        public final boolean isSystemInfo​(de.desy.tine.server.logger.Clog clog)
      • logger2RunId

        public final java.util.UUID logger2RunId​(java.lang.String logger)
      • runId2Logger

        public java.lang.String runId2Logger​(java.util.UUID runID)
      • createClogMapper

        public MstLog4TineLog_Facade.ClogMapper createClogMapper​(de.desy.tine.server.logger.Clog systemMessage)
                                                          throws java.lang.IllegalArgumentException
        Parameters:
        systemMessage - , may be null und mstLog -> Tine System Message (z.B. HB) mit gleichem pcName
        Returns:
        einen Mapper fuer alle weiteren korrespondierenden ClogMessages
        Throws:
        java.lang.IllegalArgumentException - falls keine System Message