LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
example_logit_basic.cpp File Reference

Demonstrates the usage of the LogIt library with various data types and scenarios. More...

#include <iostream>
#include <stdexcept>
#include <logit.hpp>

Go to the source code of this file.

Classes

class  CustomErrorCategory
 

Namespaces

namespace  anonymous_namespace{example_logit_basic.cpp}
 
namespace  logit
 The primary namespace for the LogIt++ library.
 

Enumerations

enum class  COLORS {
  NC = -1 , BLACK , RED , GREEN ,
  YELLOW , BLUE , MAGENTA , CYAN ,
  WHITE
}
 

Functions

void anonymous_namespace{example_logit_basic.cpp}::log_depth_fixture ()
 
std::ostream & operator<< (std::ostream &os, COLORS c)
 
template<>
std::string logit::enum_to_string (COLORS value)
 
const std::error_category & custom_error_category ()
 
int main ()
 

Detailed Description

Demonstrates the usage of the LogIt library with various data types and scenarios.

Definition in file example_logit_basic.cpp.

Enumeration Type Documentation

◆ COLORS

enum class COLORS
strong
Enumerator
NC 
BLACK 
RED 
GREEN 
YELLOW 
BLUE 
MAGENTA 
CYAN 
WHITE 

Definition at line 21 of file example_logit_basic.cpp.

Function Documentation

◆ custom_error_category()

const std::error_category & custom_error_category ( )

Definition at line 74 of file example_logit_basic.cpp.

◆ main()

int main ( )

Definition at line 79 of file example_logit_basic.cpp.

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
COLORS c )

Definition at line 33 of file example_logit_basic.cpp.