Class DebugFileImpl

  • All Implemented Interfaces:
    DebugFile

    public class DebugFileImpl
    extends Object
    implements DebugFile
    Manage a log file : - compute its complete name - create log directory - manage the log rotation
    • Constructor Detail

      • DebugFileImpl

        public DebugFileImpl​(DebugConfiguration configuration,
                             String debugName)
        Constructor
        Parameters:
        configuration - debug configuration
        debugName - log file name
      • DebugFileImpl

        public DebugFileImpl​(DebugConfiguration configuration,
                             String debugName,
                             org.forgerock.util.time.TimeService clock)
        Constructor
        Parameters:
        configuration - debug configuration
        debugName - log file name
        clock - Clock used to generate date
    • Method Detail

      • writeIt

        public void writeIt​(String prefix,
                            String msg,
                            Throwable th)
                     throws IOException
        Description copied from interface: DebugFile
        Write message into file
        Specified by:
        writeIt in interface DebugFile
        Parameters:
        prefix - Message prefix
        msg - Message to be recorded.
        th - the optional java.lang.Throwable which if present will be used to record the stack trace.
        Throws:
        IOException