Qore Logger Module Reference 1.0
Loading...
Searching...
No Matches
Logger::LoggerAppenderStream Class Reference

implements appender writing to an output stream via StreamWriter More...

#include <Logger.qm.dox.h>

Inherits LoggerAppenderWithLayout.

Public Member Methods

 constructor (*string name, LoggerLayout layout, StreamWriter writer)
 Creates the object. More...
 
StreamWriter getStreamWriter ()
 Returns the stream writer object.
 
bool hasAssignThread ()
 Returns True if assigning a thread for a stream.
 
 processEventImpl (int type, auto params)
 Processes open, log, and close events with the output stream; all other events are ignored.
 

Private:Internal Attributes

bool assignThread
 assign thread for stream
 
bool closed = False
 closed flag
 
StreamWriter writer
 stream writer
 

Detailed Description

implements appender writing to an output stream via StreamWriter

Qore streams are not designed to accept input from multiple threads simultaneously, so writing must be serialized and processed in a dedicated thread

Member Function Documentation

◆ constructor()

Logger::LoggerAppenderStream::constructor ( *string  name,
LoggerLayout  layout,
StreamWriter  writer 
)

Creates the object.

Parameters
namethe name of the appender
layoutthe layout for the appender
writerthe stream to write to