Class Tracer

java.lang.Object
com.progress.open4gl.dynamicapi.Tracer
All Implemented Interfaces:
com.progress.common.ehnlog.IAppLogger, com.progress.common.ehnlog.IEhnLog, Serializable

public class Tracer extends Object implements Serializable, com.progress.common.ehnlog.IAppLogger
See Also:
  • Field Details

  • Constructor Details

    • Tracer

      public Tracer()
  • Method Details

    • startTrace

      public void startTrace()
    • startTrace

      public void startTrace(int level)
    • startTrace

      public void startTrace(String fileName)
    • getCurrentLogFileName

      public String getCurrentLogFileName()
      Specified by:
      getCurrentLogFileName in interface com.progress.common.ehnlog.IEhnLog
    • registerThresholdEventHandler

      public boolean registerThresholdEventHandler(com.progress.common.ehnlog.ILogEvntHandler handler)
      Specified by:
      registerThresholdEventHandler in interface com.progress.common.ehnlog.IEhnLog
    • startTrace

      public void startTrace(String fileName, int level)
    • print

      public void print(String string)
    • print

      public void print(String string, int level)
    • print

      public void print(Throwable t)
    • print

      public void print(Throwable t, int level)
    • endTrace

      public void endTrace()
    • switchLogFile

      public boolean switchLogFile(String logFileName, int logAppendMode)
      Specified by:
      switchLogFile in interface com.progress.common.ehnlog.IEhnLog
    • setLoggingLevel

      public int setLoggingLevel(int newLevel)
      Specified by:
      setLoggingLevel in interface com.progress.common.ehnlog.IAppLogger
    • setLogEntries

      public long setLogEntries(long newLogEntries, boolean newsubLevelUsed, byte[] newlogSubLevels)
      Specified by:
      setLogEntries in interface com.progress.common.ehnlog.IEhnLog
    • getLogEntries

      public long getLogEntries()
      Specified by:
      getLogEntries in interface com.progress.common.ehnlog.IEhnLog
    • setLogEntries

      public long setLogEntries(String logEntryTypes)
      Specified by:
      setLogEntries in interface com.progress.common.ehnlog.IAppLogger
    • resetLogEntries

      public long resetLogEntries(String logEntryTypes)
      Specified by:
      resetLogEntries in interface com.progress.common.ehnlog.IAppLogger
    • getLoggingLevel

      public int getLoggingLevel()
      Specified by:
      getLoggingLevel in interface com.progress.common.ehnlog.IEhnLog
    • ifLogLevel

      public boolean ifLogLevel(int loggingLevel)
      Specified by:
      ifLogLevel in interface com.progress.common.ehnlog.IEhnLog
    • ifLogIt

      public boolean ifLogIt(int loggingLevel, long logEntries, int logEntryIndex)
      Specified by:
      ifLogIt in interface com.progress.common.ehnlog.IEhnLog
    • ifLogExtended

      public boolean ifLogExtended(long logEntries, int logEntryIndex)
      Specified by:
      ifLogExtended in interface com.progress.common.ehnlog.IEhnLog
    • ifLogBasic

      public boolean ifLogBasic(long logEntries, int logEntryIndex)
      Specified by:
      ifLogBasic in interface com.progress.common.ehnlog.IEhnLog
    • ifLogVerbose

      public boolean ifLogVerbose(long logEntries, int logEntryIndex)
      Specified by:
      ifLogVerbose in interface com.progress.common.ehnlog.IEhnLog
    • logExtended

      public void logExtended(int entrytypeId, long msgId, Object... msgTokens)
      Specified by:
      logExtended in interface com.progress.common.ehnlog.IAppLogger
    • logExtended

      public void logExtended(int entrytypeId, String msgFormat, Object... msgTokens)
      Specified by:
      logExtended in interface com.progress.common.ehnlog.IAppLogger
    • logAssert

      public void logAssert(boolean bCondition, int entrytypeId, String msg)
      Specified by:
      logAssert in interface com.progress.common.ehnlog.IAppLogger
    • logBasic

      public void logBasic(int entrytypeId, long msgId, Object... msgTokens)
      Specified by:
      logBasic in interface com.progress.common.ehnlog.IAppLogger
    • logBasic

      public void logBasic(int entrytypeId, String msgFormat, Object... msgTokens)
      Specified by:
      logBasic in interface com.progress.common.ehnlog.IAppLogger
    • logVerbose

      public void logVerbose(int entrytypeId, long msgId, Object... msgTokens)
      Specified by:
      logVerbose in interface com.progress.common.ehnlog.IAppLogger
    • logVerbose

      public void logVerbose(int entrytypeId, String msgFormat, Object... msgTokens)
      Specified by:
      logVerbose in interface com.progress.common.ehnlog.IAppLogger
    • logError

      public void logError(long msgId, Object... msgTokens)
      Specified by:
      logError in interface com.progress.common.ehnlog.IAppLogger
    • logError

      public void logError(String msgFormat, Object... msgTokens)
      Specified by:
      logError in interface com.progress.common.ehnlog.IAppLogger
    • logWithThisLevel

      public void logWithThisLevel(int level, int entrytypeId, String msg)
      Specified by:
      logWithThisLevel in interface com.progress.common.ehnlog.IAppLogger
    • logWriteMessage

      public void logWriteMessage(int dest, int severityLevel, String execEnvId, String entrytypeId, String msgText)
      Specified by:
      logWriteMessage in interface com.progress.common.ehnlog.IAppLogger
    • logWriteMessage

      public void logWriteMessage(int dest, int severityLevel, String execEnvId, String entrytypeId, String msgText, Throwable except)
      Specified by:
      logWriteMessage in interface com.progress.common.ehnlog.IAppLogger
    • ehnLogWrite

      public void ehnLogWrite(int dest, int severityLevel, String execEnvId, String entrytypeId, String msgText)
      Specified by:
      ehnLogWrite in interface com.progress.common.ehnlog.IEhnLog
    • getLogContext

      public com.progress.common.ehnlog.LogContext getLogContext()
      Specified by:
      getLogContext in interface com.progress.common.ehnlog.IAppLogger
    • getExecEnvId

      public String getExecEnvId()
      Specified by:
      getExecEnvId in interface com.progress.common.ehnlog.IAppLogger
    • setExecEnvId

      public void setExecEnvId(String newExecEnvId)
      Specified by:
      setExecEnvId in interface com.progress.common.ehnlog.IAppLogger
    • logStackTrace

      public void logStackTrace(String msg, Throwable except)
      Specified by:
      logStackTrace in interface com.progress.common.ehnlog.IAppLogger
    • logStackTrace

      public void logStackTrace(long msgId, Object[] msgTokens, Throwable except)
      Specified by:
      logStackTrace in interface com.progress.common.ehnlog.IAppLogger
    • logStackTrace

      public void logStackTrace(int entrytypeId, String msg, Throwable except)
      Specified by:
      logStackTrace in interface com.progress.common.ehnlog.IAppLogger
    • logStackTrace

      public void logStackTrace(int entrytypeId, long msgId, Object[] msgTokens, Throwable except)
      Specified by:
      logStackTrace in interface com.progress.common.ehnlog.IAppLogger
    • ehnLogDump

      public void ehnLogDump(int dest, int severityLevel, String execEnvId, String entrytypeId, String msgText, byte[] pbData, int cbData)
      Specified by:
      ehnLogDump in interface com.progress.common.ehnlog.IEhnLog
    • ehnLogStackTrace

      public void ehnLogStackTrace(int dest, int severityLevel, String execEnvId, String entrytypeId, String msgText, Throwable e)
      Specified by:
      ehnLogStackTrace in interface com.progress.common.ehnlog.IEhnLog
    • logDump

      public void logDump(int level, int entrytypeId, String msg, byte[] pData, int len)
      Specified by:
      logDump in interface com.progress.common.ehnlog.IAppLogger
    • logClose

      public void logClose()
      Specified by:
      logClose in interface com.progress.common.ehnlog.IAppLogger
    • nameAt

      public String nameAt(int index)
      Specified by:
      nameAt in interface com.progress.common.ehnlog.IAppLogger
    • getNumLogFiles

      public int getNumLogFiles()
      Specified by:
      getNumLogFiles in interface com.progress.common.ehnlog.IEhnLog
    • getSubLevelUsed

      public boolean getSubLevelUsed()
      Specified by:
      getSubLevelUsed in interface com.progress.common.ehnlog.IEhnLog
    • getLogSubLevels

      public byte[] getLogSubLevels()
      Specified by:
      getLogSubLevels in interface com.progress.common.ehnlog.IEhnLog
    • getLoggingIsOn

      public boolean getLoggingIsOn()
      Specified by:
      getLoggingIsOn in interface com.progress.common.ehnlog.IEhnLog
    • getDispWriter

      public com.progress.common.ehnlog.LogWriter getDispWriter()
      Specified by:
      getDispWriter in interface com.progress.common.ehnlog.IEhnLog
    • getFileWriter

      public com.progress.common.ehnlog.LogWriter getFileWriter()
      Specified by:
      getFileWriter in interface com.progress.common.ehnlog.IEhnLog
    • getDispHandler

      public com.progress.common.ehnlog.LogHandler getDispHandler()
      Specified by:
      getDispHandler in interface com.progress.common.ehnlog.IEhnLog
    • getFileHandler

      public com.progress.common.ehnlog.LogHandler getFileHandler()
      Specified by:
      getFileHandler in interface com.progress.common.ehnlog.IEhnLog