| 1234567891011121314151617181920212223242526 |
- //
- // logger_fwd.hpp
- // logger
- //
- // Created by Sam Jaffe on 9/3/16.
- //
- #pragma once
- #include <string>
- #if defined(_MSC_VER)
- #define log_here \
- { __FILE__, __LINE__, __FUNCTION__, __FUNCSIG__ }
- #else
- #define log_here \
- { __FILE__, __LINE__, __FUNCTION__, __PRETTY_FUNCTION__ }
- #endif
- #define LIST_OF_LOGGING_LEVELS \
- trace, debug, info, warning, error, critical, fatal, none
- namespace logging {
- enum class level : int { LIST_OF_LOGGING_LEVELS, warn = warning };
- std::ostream & operator<<(std::ostream & os, level l);
- }
|