#include <logging.h>
Definition at line 59 of file logging.h.
 
◆ DefaultShrinkDebugFile()
      
        
          | bool BCLog::Logger::DefaultShrinkDebugFile  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ DisableCategory() [1/2]
◆ DisableCategory() [2/2]
      
        
          | bool BCLog::Logger::DisableCategory  | 
          ( | 
          const std::string &  | 
          str | ) | 
           | 
        
      
 
 
◆ EnableCategory() [1/2]
◆ EnableCategory() [2/2]
      
        
          | bool BCLog::Logger::EnableCategory  | 
          ( | 
          const std::string &  | 
          str | ) | 
           | 
        
      
 
 
◆ Enabled()
  
  
      
        
          | bool BCLog::Logger::Enabled  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Returns whether logs will be written to any output. 
Definition at line 92 of file logging.h.
 
 
◆ GetCategoryMask()
  
  
      
        
          | uint32_t BCLog::Logger::GetCategoryMask  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ LogPrintStr()
      
        
          | void BCLog::Logger::LogPrintStr  | 
          ( | 
          const std::string &  | 
          str | ) | 
           | 
        
      
 
Send a string to the log output. 
Definition at line 201 of file logging.cpp.
 
 
◆ LogTimestampStr()
  
  
      
        
          | std::string BCLog::Logger::LogTimestampStr  | 
          ( | 
          const std::string &  | 
          str | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ OpenDebugLog()
      
        
          | bool BCLog::Logger::OpenDebugLog  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ShrinkDebugFile()
      
        
          | void BCLog::Logger::ShrinkDebugFile  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ WillLogCategory()
◆ m_categories
  
  
      
        
          | std::atomic<uint32_t> BCLog::Logger::m_categories {0} | 
         
       
   | 
  
private   | 
  
 
Log categories bitfield. 
Definition at line 74 of file logging.h.
 
 
◆ m_file_mutex
  
  
      
        
          | std::mutex BCLog::Logger::m_file_mutex | 
         
       
   | 
  
private   | 
  
 
 
◆ m_file_path
      
        
          | fs::path BCLog::Logger::m_file_path | 
        
      
 
 
◆ m_fileout
  
  
      
        
          | FILE* BCLog::Logger::m_fileout = nullptr | 
         
       
   | 
  
private   | 
  
 
 
◆ m_log_time_micros
      
        
          | bool BCLog::Logger::m_log_time_micros = DEFAULT_LOGTIMEMICROS | 
        
      
 
 
◆ m_log_timestamps
      
        
          | bool BCLog::Logger::m_log_timestamps = DEFAULT_LOGTIMESTAMPS | 
        
      
 
 
◆ m_msgs_before_open
  
  
      
        
          | std::list<std::string> BCLog::Logger::m_msgs_before_open | 
         
       
   | 
  
private   | 
  
 
 
◆ m_print_to_console
      
        
          | bool BCLog::Logger::m_print_to_console = false | 
        
      
 
 
◆ m_print_to_file
      
        
          | bool BCLog::Logger::m_print_to_file = false | 
        
      
 
 
◆ m_reopen_file
      
        
          | std::atomic<bool> BCLog::Logger::m_reopen_file {false} | 
        
      
 
 
◆ m_started_new_line
  
  
      
        
          | std::atomic_bool BCLog::Logger::m_started_new_line {true} | 
         
       
   | 
  
private   | 
  
 
m_started_new_line is a state variable that will suppress printing of the timestamp when multiple calls are made that don't end in a newline. 
Definition at line 71 of file logging.h.
 
 
The documentation for this class was generated from the following files: