com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class Appender

    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected Appender()
      Inistializes a new instance of Appender class.
      protected Appender(IFormatter formatter)
      Inistializes a new instance of Appender class.
    • Constructor Detail

      • Appender

        protected Appender()

        Inistializes a new instance of Appender class.

      • Appender

        protected Appender(IFormatter formatter)

        Inistializes a new instance of Appender class.

        Parameters:
        formatter - The IFormatter.
    • Method Detail

      • appendHeader

        public void appendHeader()

        Starts log file with specific header.

        Specified by:
        appendHeader in interface IAppender
      • append

        public abstract void append(LogEntry entry)

        Appends the specified log entry to the appender.

        Specified by:
        append in interface IAppender
        Parameters:
        entry - The log entry.
      • close

        public void close()

        Closes the appender.

      • getInitialized

        protected boolean getInitialized()

        Indicates whether an Appender is initialized.

        Returns:
        a boolean.
      • initialize

        public void initialize()

        Initializes the appender instance.

      • getClosed

        protected boolean getClosed()

        Indicates whether an Appender is closed.

        Returns:
        a boolean.
      • dispose

        public void dispose()

        Releases the unmanaged resources used by the Appender.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • dispose

        protected void dispose(boolean disposing)

        Releases the unmanaged resources used by the Appender, and optionally disposes of the managed resources.

        Parameters:
        disposing - true to release both managed and unmanaged resources; false to releases only unmanaged resources.
      • finalize

        protected void finalize()
                         throws Throwable

        Frees resources used by the Appender class.

        Overrides:
        finalize in class Object
        Throws:
        Throwable - if any.