FireSTARR
Loading...
Searching...
No Matches
fs::logging::Log Class Reference

Provides logging functionality. More...

#include <Log.h>

Static Public Member Functions

static void setLogLevel (int log_level) noexcept
 Set logging level to a specific level.
 
static void increaseLogLevel () noexcept
 Increase amount of logging output by one level.
 
static void decreaseLogLevel () noexcept
 Decrease amount of logging output by one level.
 
static int getLogLevel () noexcept
 Get current logging level.
 
static int openLogFile (const char *filename) noexcept
 Set output log file.
 
static int closeLogFile () noexcept
 Set output log file.
 

Static Private Attributes

static int logging_level_ = LOG_DEBUG
 Current logging level.
 

Detailed Description

Provides logging functionality.

Member Function Documentation

◆ closeLogFile()

int fs::logging::Log::closeLogFile ( )
staticnoexcept

Set output log file.

Returns
Return value of close()

◆ decreaseLogLevel()

void fs::logging::Log::decreaseLogLevel ( )
staticnoexcept

Decrease amount of logging output by one level.

Returns
None
Here is the call graph for this function:

◆ getLogLevel()

int fs::logging::Log::getLogLevel ( )
staticnoexcept

Get current logging level.

Returns
Current logging level
Here is the caller graph for this function:

◆ increaseLogLevel()

void fs::logging::Log::increaseLogLevel ( )
staticnoexcept

Increase amount of logging output by one level.

Returns
None
Here is the call graph for this function:

◆ openLogFile()

int fs::logging::Log::openLogFile ( const char * filename)
staticnoexcept

Set output log file.

Returns
Return value of open()

◆ setLogLevel()

void fs::logging::Log::setLogLevel ( int log_level)
staticnoexcept

Set logging level to a specific level.

Parameters
log_levelLog level to use
Returns
None

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