trikRuntime
QsLogging::DestinationFactory Class Reference

Creates logging destinations/sinks. More...

#include <QsLogDest.h>

Static Public Member Functions

static DestinationPtr MakeFileDestination (const QString &filePath, LogRotationOption rotation=DisableLogRotation, const MaxSizeBytes &sizeInBytesToRotateAfter=MaxSizeBytes(), const MaxOldLogCount &oldLogsToKeep=MaxOldLogCount(), Level level=InfoLevel)
 destination factory More...
 
static DestinationPtr MakeDebugOutputDestination ()
 
static DestinationPtr MakeFunctorDestination (Destination::LogFunction f)
 
static DestinationPtr MakeFunctorDestination (QObject *receiver, const char *member)
 

Detailed Description

Creates logging destinations/sinks.

The caller shares ownership of the destinations with the logger. After being added to a logger, the caller can discard the pointers.

Member Function Documentation

DestinationPtr QsLogging::DestinationFactory::MakeDebugOutputDestination ( )
static
DestinationPtr QsLogging::DestinationFactory::MakeFileDestination ( const QString &  filePath,
LogRotationOption  rotation = DisableLogRotation,
const MaxSizeBytes sizeInBytesToRotateAfter = MaxSizeBytes(),
const MaxOldLogCount oldLogsToKeep = MaxOldLogCount(),
Level  level = InfoLevel 
)
static

destination factory

DestinationPtr QsLogging::DestinationFactory::MakeFunctorDestination ( Destination::LogFunction  f)
static
DestinationPtr QsLogging::DestinationFactory::MakeFunctorDestination ( QObject *  receiver,
const char *  member 
)
static

The documentation for this class was generated from the following files: