BAOS .net SDK  18.2.0
Public Types | Static Public Member Functions | List of all members
kdrive::Logger Class Reference

Start/Stop the logging system More...

#include <kdriveLogger.h>

Public Types

enum  Level {
  Level::None = 0, Level::Fatal, Level::Critical, Level::Error,
  Level::Warning, Level::Notice, Level::Information, Level::Debug,
  Level::Trace
}
 

Static Public Member Functions

static void SetConsoleChannel ()
 
static void SetFileChannel ()
 
static void SetFileChannel (System::String^fileName)
 
static void Log (Level level, System::String^message)
 
static void Dump (Level level, System::String^message, array< unsigned char >^data)
 
static void Shutdown ()
 
static void SetLevels (Level level)
 

Detailed Description

Start/Stop the logging system

If you start the logger you must stop it (i.e. on close, or app end) to release the logging resources. If you don't stop the logger your application may crash on exit

If you start the logger the output will appear on the console. For non-console (i.e. gui) applications this is the output window of the visual studio debugger

Member Enumeration Documentation

enum kdrive::Logger::Level
strong
Enumerator
None 
Fatal 
Critical 
Error 
Warning 
Notice 
Information 
Debug 
Trace 

Member Function Documentation

static void kdrive::Logger::Dump ( Level  level,
System::String^  message,
array< unsigned char >^  data 
)
static
static void kdrive::Logger::Log ( Level  level,
System::String^  message 
)
static
static void kdrive::Logger::SetConsoleChannel ( )
static
static void kdrive::Logger::SetFileChannel ( )
static
static void kdrive::Logger::SetFileChannel ( System::String^  fileName)
static
static void kdrive::Logger::SetLevels ( Level  level)
static
static void kdrive::Logger::Shutdown ( )
static

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