AppenderSkeleton OnClose Method | Apache log4net™ SDK Documentation

Is called when the appender is closed. Derived classes should override this method if resources need to be released.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected virtual void OnClose()

    Protected Overridable Sub OnClose

    protected:
    virtual void OnClose()

    abstract OnClose : unit -> unit
    override OnClose : unit -> unit

Remarks

Releases any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.

See Also

#### Reference

AppenderSkeleton Class
log4net.Appender Namespace