Class DefaultLogger

    • Constructor Detail

      • DefaultLogger

        public DefaultLogger​(java.io.OutputStream outputStream,
                             AutomaticBean.OutputStreamOptions outputStreamOptions)
        Creates a new DefaultLogger instance.
        Parameters:
        outputStream - where to log audit events
        outputStreamOptions - if CLOSE that should be closed in auditFinished()
      • DefaultLogger

        public DefaultLogger​(java.io.OutputStream outputStream,
                             AbstractAutomaticBean.OutputStreamOptions outputStreamOptions)
        Creates a new DefaultLogger instance.
        Parameters:
        outputStream - where to log audit events
        outputStreamOptions - if CLOSE that should be closed in auditFinished()
      • DefaultLogger

        public DefaultLogger​(java.io.OutputStream infoStream,
                             AbstractAutomaticBean.OutputStreamOptions infoStreamOptions,
                             java.io.OutputStream errorStream,
                             AbstractAutomaticBean.OutputStreamOptions errorStreamOptions)
        Creates a new DefaultLogger instance.
        Parameters:
        infoStream - the OutputStream for info messages.
        infoStreamOptions - if CLOSE info should be closed in auditFinished()
        errorStream - the OutputStream for error messages.
        errorStreamOptions - if CLOSE error should be closed in auditFinished()
      • DefaultLogger

        public DefaultLogger​(java.io.OutputStream infoStream,
                             AbstractAutomaticBean.OutputStreamOptions infoStreamOptions,
                             java.io.OutputStream errorStream,
                             AbstractAutomaticBean.OutputStreamOptions errorStreamOptions,
                             AuditEventFormatter messageFormatter)
        Creates a new DefaultLogger instance.
        Parameters:
        infoStream - the OutputStream for info messages
        infoStreamOptions - if CLOSE info should be closed in auditFinished()
        errorStream - the OutputStream for error messages
        errorStreamOptions - if CLOSE error should be closed in auditFinished()
        messageFormatter - formatter for the log message.
        Throws:
        java.lang.IllegalArgumentException - if stream options are null