Simple Logger Class that wraps around spdlog in order to expose easy logging functions.
More...
|
| void | initFileLogger (const std::string &filepath, unsigned int flushIntervalSeconds=0) |
| |
| | AyonLogger (const AyonLogger &)=delete |
| |
| AyonLogger & | operator= (const AyonLogger &)=delete |
| |
| std::set< std::string >::iterator | key (const std::string &key) |
| |
| bool | registerLoggingKey (const std::string &keyName) |
| |
| bool | unregisterLoggingKey (const std::string &keyName) |
| |
| bool | isKeyActive (const std::set< std::string >::iterator &loggingIterator) |
| |
| template<typename... Args> |
| void | error (fmt::format_string< Args... > fmt, Args &&... args) |
| |
| template<typename... Args> |
| void | error (const std::set< std::string >::iterator &it, fmt::format_string< Args... > fmt, Args &&... args) |
| |
| template<typename... Args> |
| void | info (fmt::format_string< Args... > fmt, Args &&... args) |
| |
| template<typename... Args> |
| void | info (const std::set< std::string >::iterator &it, fmt::format_string< Args... > fmt, Args &&... args) |
| |
| template<typename... Args> |
| void | warn (fmt::format_string< Args... > fmt, Args &&... args) |
| |
| template<typename... Args> |
| void | warn (const std::set< std::string >::iterator &it, fmt::format_string< Args... > fmt, Args &&... args) |
| |
| template<typename... Args> |
| void | critical (fmt::format_string< Args... > fmt, Args &&... args) |
| |
| template<typename... Args> |
| void | critical (const std::set< std::string >::iterator &it, fmt::format_string< Args... > fmt, Args &&... args) |
| |
| void | setLogLevel (spdlog::level::level_enum lvl, bool applyToFile=false) |
| |
| void | setLogLevel (const std::string &levelStr, bool applyToFile=false) |
| |
| void | setLogLevelFromEnv (const std::string &envKey="AYON_USD_RESOLVER_LOG_LVL", bool applyToFile=false) |
| |
| void | setLogLevelInfo (bool applyToFile=false) |
| |
| void | setLogLevelError (bool applyToFile=false) |
| |
| void | setLogLevelWarn (bool applyToFile=false) |
| |
| void | setLogLevelCritical (bool applyToFile=false) |
| |
| void | setLogLevelOff (bool applyToFile=false) |
| |
| void | flush () |
| |
Simple Logger Class that wraps around spdlog in order to expose easy logging functions.
Uses async logging for better performance.
Usage: auto& log = AyonLogger::getInstance(); log.initFileLogger("/tmp/app.log"); log.registerLoggingKey("MyModule"); log.info(log.key("MyModule"), "Started {}", version);