occ
Loading...
Searching...
No Matches
log.h File Reference
#include <functional>
#include <spdlog/spdlog.h>
#include <string>
#include <vector>
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  occ
 
namespace  occ::log
 logging for debug output, warnings, errors etc.
 
namespace  occ::log::level
 

Typedefs

using occ::log::LogCallback = std::function< void(spdlog::level::level_enum level, const std::string &message)>
 

Functions

void occ::log::set_log_level (const std::string &verbosity)
 
void occ::log::set_log_level (spdlog::level::level_enum level)
 
void occ::log::set_log_level (int verbosity)
 
void occ::log::set_log_file (const std::string &filename)
 
void occ::log::flush ()
 
void occ::log::flush_on (spdlog::level::level_enum level)
 
void occ::log::flush_every (std::chrono::seconds interval)
 
void occ::log::register_log_callback (const LogCallback &callback)
 
void occ::log::clear_log_callbacks ()
 
std::vector< std::pair< spdlog::level::level_enum, std::string > > occ::log::get_buffered_logs ()
 
void occ::log::clear_log_buffer ()
 
void occ::log::set_log_buffering (bool enable)