NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::detail::Logger Class Reference

#include <NesLogger.hpp>

Public Member Functions

 Logger (const std::string &logFileName, LogLevel level)
 Configures this Logger using a file path for the filesystem logging and a logging level. More...
 
 ~Logger ()
 
 Logger ()
 
 Logger (const Logger &)=delete
 
void operator= (const Logger &)=delete
 
void shutdown ()
 
template<typename... arguments>
constexpr void trace (spdlog::source_loc &&loc, fmt::format_string< arguments... > &&format, arguments &&... args)
 Logs a tracing message using a format, a source location, and a set of arguments to display. More...
 
template<typename... arguments>
constexpr void warn (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args)
 Logs a warning message using a format, a source location, and a set of arguments to display. More...
 
template<typename... arguments>
constexpr void fatal (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args)
 Logs a fatal error message using a format, a source location, and a set of arguments to display. More...
 
template<typename... arguments>
constexpr void info (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args)
 Logs an info message using a format, a source location, and a set of arguments to display. More...
 
template<typename... arguments>
constexpr void debug (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args)
 Logs a debug message using a format, a source location, and a set of arguments to display. More...
 
template<typename... arguments>
constexpr void error (spdlog::source_loc &&loc, fmt::format_string< arguments... > format, arguments &&... args)
 Logs an error message using a format, a source location, and a set of arguments to display. More...
 
void flush ()
 flushes the current log to filesystem More...
 
void forceFlush ()
 forcefully flushes the current log to filesystem More...
 
LogLevel getCurrentLogLevel () const noexcept
 get the current logging level More...
 
void changeLogLevel (LogLevel newLevel)
 change the current logging level to a new level More...
 

Constructor & Destructor Documentation

◆ Logger() [1/3]

NES::detail::Logger::Logger ( const std::string &  logFileName,
LogLevel  level 
)
explicit

Configures this Logger using a file path for the filesystem logging and a logging level.

Parameters
logFileName
level

References backward::ColorMode::always, changeLogLevel(), and NES::detail::toSpdlogLevel().

Here is the call graph for this function:

◆ ~Logger()

NES::detail::Logger::~Logger ( )

References shutdown().

Here is the call graph for this function:

◆ Logger() [2/3]

NES::detail::Logger::Logger ( )

◆ Logger() [3/3]

NES::detail::Logger::Logger ( const Logger )
delete

Member Function Documentation

◆ changeLogLevel()

void NES::detail::Logger::changeLogLevel ( LogLevel  newLevel)

change the current logging level to a new level

Parameters
newLevel

References std::swap(), and NES::detail::toSpdlogLevel().

Referenced by Logger().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ debug()

template<typename... arguments>
constexpr void NES::detail::Logger::debug ( spdlog::source_loc &&  loc,
fmt::format_string< arguments... >  format,
arguments &&...  args 
)
inlineconstexpr

Logs a debug message using a format, a source location, and a set of arguments to display.

Template Parameters
arguments
Parameters
loc
format
args
Returns

References backward::details::move().

Here is the call graph for this function:

◆ error()

template<typename... arguments>
constexpr void NES::detail::Logger::error ( spdlog::source_loc &&  loc,
fmt::format_string< arguments... >  format,
arguments &&...  args 
)
inlineconstexpr

Logs an error message using a format, a source location, and a set of arguments to display.

Template Parameters
arguments
Parameters
loc
format
args
Returns

References backward::details::move().

Here is the call graph for this function:

◆ fatal()

template<typename... arguments>
constexpr void NES::detail::Logger::fatal ( spdlog::source_loc &&  loc,
fmt::format_string< arguments... >  format,
arguments &&...  args 
)
inlineconstexpr

Logs a fatal error message using a format, a source location, and a set of arguments to display.

Template Parameters
arguments
Parameters
loc
format
args
Returns

References backward::details::move().

Here is the call graph for this function:

◆ flush()

void NES::detail::Logger::flush ( )
inline

flushes the current log to filesystem

◆ forceFlush()

void NES::detail::Logger::forceFlush ( )

forcefully flushes the current log to filesystem

◆ getCurrentLogLevel()

LogLevel NES::detail::Logger::getCurrentLogLevel ( ) const
inlinenoexcept

get the current logging level

◆ info()

template<typename... arguments>
constexpr void NES::detail::Logger::info ( spdlog::source_loc &&  loc,
fmt::format_string< arguments... >  format,
arguments &&...  args 
)
inlineconstexpr

Logs an info message using a format, a source location, and a set of arguments to display.

Template Parameters
arguments
Parameters
loc
format
args
Returns

References backward::details::move().

Here is the call graph for this function:

◆ operator=()

void NES::detail::Logger::operator= ( const Logger )
delete

◆ shutdown()

void NES::detail::Logger::shutdown ( )

Referenced by ~Logger().

Here is the caller graph for this function:

◆ trace()

template<typename... arguments>
constexpr void NES::detail::Logger::trace ( spdlog::source_loc &&  loc,
fmt::format_string< arguments... > &&  format,
arguments &&...  args 
)
inlineconstexpr

Logs a tracing message using a format, a source location, and a set of arguments to display.

Template Parameters
arguments
Parameters
loc
format
args
Returns

References backward::details::move().

Here is the call graph for this function:

◆ warn()

template<typename... arguments>
constexpr void NES::detail::Logger::warn ( spdlog::source_loc &&  loc,
fmt::format_string< arguments... >  format,
arguments &&...  args 
)
inlineconstexpr

Logs a warning message using a format, a source location, and a set of arguments to display.

Template Parameters
arguments
Parameters
loc
format
args
Returns

References backward::details::move().

Here is the call graph for this function:

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