pacmancoder / dcdr

Distributed Computing Distributed Raytracer
MIT License
1 stars 0 forks source link

Logger refactoring #8

Closed pacmancoder closed 6 years ago

pacmancoder commented 6 years ago

expected result:

  1. Logger should accept category parameters (subsystem e.g Server, interconnect + source e.g ParcelSerializer, SceneRenderer)
  2. Logger should have filtering abilities
  3. Logger log_* functions should be macro - to avoid calculations of parameters:
    log_debug(std::string("test").append(to_string(bigObject)));
    // will expand to the following pseudo-code
    if ( logLevel  >= Debug)
    {
    log(LogKind::Debug, std::string("test").append(to_string(bigObject)));
    }
pacmancoder commented 6 years ago

Done