openDAQ
Open data acquisition platform
Factories
+ Collaboration diagram for Factories:

Detailed Description

Functions

LoggerSinkPtr StdErrLoggerSink ()
 Creates a Logger Sink object with Stderr as a target.
 
LoggerSinkPtr StdOutLoggerSink ()
 Creates a Logger Sink object with Stdout as a target.
 
LoggerSinkPtr RotatingFileLoggerSink (const StringPtr &fileName, SizeT maxFileSize, SizeT maxFiles)
 Creates a Logger Sink object with rotating files as a target. More...
 
LoggerSinkPtr BasicFileLoggerSink (const StringPtr &fileName)
 Creates a Logger Sink object with basic file as a target. More...
 
ListPtr< ILoggerSinkDefaultSinks (const StringPtr &fileName=nullptr)
 Creates a list of Sink objects. More...
 

Function Documentation

◆ BasicFileLoggerSink()

LoggerSinkPtr BasicFileLoggerSink ( const StringPtr fileName)
inline

Creates a Logger Sink object with basic file as a target.

Parameters
fileNameThe name of the file.

◆ DefaultSinks()

ListPtr<ILoggerSink> DefaultSinks ( const StringPtr fileName = nullptr)
inline

Creates a list of Sink objects.

Parameters
fileNameThe base file name for rotating files sink.

The rotating files sink is present in the created list if fileName is provided, otherwise only Stdout and WinDebug sinks are present

◆ RotatingFileLoggerSink()

LoggerSinkPtr RotatingFileLoggerSink ( const StringPtr fileName,
SizeT  maxFileSize,
SizeT  maxFiles 
)
inline

Creates a Logger Sink object with rotating files as a target.

Parameters
fileNameThe base name of the files.
maxFileSizeThe maximum size of each file.
maxFilesThe maximum count of files.