namespace log

Log namespace contains logger functions.

Summary

Members Descriptions
class_logger_storage
public_logger_storage_nstr_logger_
public void init_log_file(const std::string & path) Inits file logger.
public void init_log_cout() Initializes the logger using the standard output stream.
public void init_log_cerr() Initializes the logger using the standard error stream.
public void disable_log() Disables the log.
public void enable_log() Enables the log.
public void set_format(const std::string & s) Changes current log format.
public void set_level(severity_levell) Changes current logger severity threshold.

Members

class_logger_storage


public_logger_storage_nstr_logger_


public void init_log_file(const std::string & path)

Inits file logger.

Parameters

  • path Log file path

  • format_string Log format string

public void init_log_cout()

Initializes the logger using the standard output stream.


public void init_log_cerr()

Initializes the logger using the standard error stream.


public void disable_log()

Disables the log.


public void enable_log()

Enables the log.


public void set_format(const std::string & s)

Changes current log format.


public void set_level(severity_levell)

Changes current logger severity threshold.


class _logger_storage

Summary

Members Descriptions
public inline void set(std::shared_ptr< spdlog::logger > && l) Changes the current logger (From spdlog=.
public inline void set_level(severity_levell) Changes the severity level threshold.
public inline void set_format(const std::string & fmt) Changes output format string.
public inline void enable() Activates logger functions.
public inline void disable() Deactivates logger functions.
public inline bool status() const Returns the current logger status.
public inline spdlog::logger & get()

Members

public inline void set(std::shared_ptr< spdlog::logger > && l)

Changes the current logger (From spdlog=.

Parameters

  • l New logger

public inline void set_level(severity_levell)

Changes the severity level threshold.

Parameters

  • l New severity level

public inline void set_format(const std::string & fmt)

Changes output format string.

Parameters

  • fmt Format string

public inline void enable()

Activates logger functions.


public inline void disable()

Deactivates logger functions.


public inline bool status() const

Returns the current logger status.

Returns

True if the logger is active

public inline spdlog::logger & get()