IAppender
public interface IAppender
Implement this interface for your own strategies for printing log entries.
Methods
| Method | Description |
|---|---|
| append(LogEntry entry) | Log the specified log entry in Appender specific way. |
| appendHeader() | Starts log file with specific header. |
| getFormatter() | Gets or sets the IFormatter. |
| setFormatter(IFormatter value) | Gets or sets the IFormatter. |
append(LogEntry entry)
public abstract void append(LogEntry entry)
Log the specified log entry in Appender specific way.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| entry | LogEntry | Contains a log message. |
appendHeader()
public abstract void appendHeader()
Starts log file with specific header.
getFormatter()
public abstract IFormatter getFormatter()
Gets or sets the IFormatter.
Returns: IFormatter
setFormatter(IFormatter value)
public abstract void setFormatter(IFormatter value)
Gets or sets the IFormatter.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | IFormatter |