Table of Contents

Interface ILoggable

Namespace
Aplib.Core.Logging
Assembly
Aplib.Core.dll

An interface that allows defining the structure of loggable objects through a LogNode tree. The only method that needs to be implemented in loggable classes is the GetLogChildren() method; the structure of the log tree is generated automatically when calling the GetLogTree(int) method.

public interface ILoggable : IDocumented
Inherited Members

Methods

GetLogChildren()

Gets the children of the loggable object.

IEnumerable<ILoggable> GetLogChildren()

Returns

IEnumerable<ILoggable>

The children of the loggable object.

GetLogTree(int)

Generates a log tree of the loggable object.

LogNode GetLogTree(int depth = 0)

Parameters

depth int

The depth of this node in the log tree.

Returns

LogNode

The root node of the log tree.