GATE
C/C++ Framework
Loading...
Searching...
No Matches
GlobalLogProvider Class Reference

Global log-file based log provider. More...

#include <logging.hpp>

Static Public Member Functions

static result_t start (String const &file, enumint_t log_type=LogProvider::Type_Warning)
 Starts global logging into an output file.
static LogProvider get ()
 Returns a log provider instance covering the global file log provider.
static result_t stop ()
 Stops logging to output file.

Detailed Description

Global log-file based log provider.

Member Function Documentation

◆ start()

result_t start ( String const & file,
enumint_t log_type = LogProvider::Type_Warning )
static

Starts global logging into an output file.

Parameters
[in]filePath to output file
[in]log_typeMinimum log category (logs below are discarded)
Returns
GATE_RESULT_* result code

◆ get()

LogProvider get ( )
static

Returns a log provider instance covering the global file log provider.

Returns
LogProvider instance

◆ stop()

result_t stop ( )
static

Stops logging to output file.

Returns
GATE_RESULT_* result code

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