|
string | archive () |
| Posts an archive event. More...
|
|
| constructor (*string name, LoggerLayout layout, string filename, string archive=DEFAULT_ARCHIVE_PATTERN, *string encoding) |
| Creates the object. More...
|
|
string | getArchiveFileName () |
| Returns the archive filename. More...
|
|
| processEventImpl (int type, auto params) |
| Implements archiving, handles the archive event directly, passes all other events to the subclass for handling. More...
|
|
| constructor (*string name, LoggerLayout layout, string filename, *string encoding) |
| Creates the object. More...
|
|
File | getFile () |
| Returns the file object for the appender.
|
|
string | getFileName () |
| Returns the current filename.
|
|
| processEventImpl (int type, auto params) |
| Processes open, close, and log events with the file and ignores all other events. More...
|
|
| constructor (*string name, LoggerLayout layout) |
| Creates the object. More...
|
|
LoggerLayout | getLayout () |
| Returns the layout for the appender.
|
|
| setLayout (LoggerLayout layout) |
| Assigns a layout to the appender. More...
|
|
| addFilter (LoggerFilter filter, bool top=False) |
| Adds a filter to the chain. More...
|
|
| close () |
| Releases any resources allocated by the appender and closes it.
|
|
| constructor (*string name) |
| Creates the object. More...
|
|
list< LoggerFilter > | getFilters () |
| Returns the filter chain as a list. More...
|
|
string | getName () |
| Returns the appender name.
|
|
*LoggerAppenderQueue | getQueue () |
| Returns async queue or NOTHING when events are processed synchronously.
|
|
bool | isOpen () |
| Returns True if the appender is open and therefore active.
|
|
| open () |
| Opens logging resources. More...
|
|
bool | post (LoggerEvent event) |
| Posts the given event to the output queue. More...
|
|
| processEvent (int type, auto params) |
| Processes an event to the physical target. More...
|
|
abstract | processEventImpl (int type, auto params) |
| Processes the event to the physical target. More...
|
|
| removeAllFilters () |
| Clears the filter chain by removing all filters.
|
|
| removeFilter (LoggerFilter filter) |
| Removes the given filter from the filter chain. More...
|
|
| setQueue (*LoggerAppenderQueue queue) |
| Sets the appender queue. More...
|
|
|
*object | ensureAtomicOperations (int type) |
| Returns an object that can be used to ensure atomic operations for appender operations.
|
|
*string | resolveField (auto data, string key, *string option) |
| Returns a string for a format field for a pattern-based filename or archive file name. More...
|
|
*object | ensureAtomicOperations (int type) |
| Returns an object that can be used to ensure atomic operations for appender operations.
|
|
auto | serializeImpl (LoggerEvent event) |
| Returns the value formatted using the layout pattern. More...
|
|
*object | ensureAtomicOperations (int type) |
| Returns an object that can be used to ensure atomic operations for appender operations.
|
|
RWLock | lock () |
| The lock to ensure proper serialization with concurrent access.
|
|
bool | pushEvent (int type, auto params) |
| Pushes the given event on the queue or calls processEvent() in case of synchronous processing. More...
|
|
abstract auto | serializeImpl (LoggerEvent event) |
| Serializes the given event to put in the queue or write to the target device. More...
|
|
abstract *string | resolveField (auto data, string key, *string option) |
| Returns a formatted string for an input pattern. More...
|
|
| constructor (string pattern) |
| Creates the object. More...
|
|
string | format (auto data) |
| Formats the event record with the current pattern. More...
|
|
string | getPattern () |
| Returns the current pattern.
|
|
| setPattern (string value) |
| Sets the new pattern. More...
|
|
Implements appender writing to a file with archive support.
The events will be logged to a file until archiving is triggered. At that moment the current file is closed, moved to file with name evaluated in runtime from the archive pattern set in the object, the new file is created, and logging continues to that file. The archive never overwrites any existing file.