diff --git a/include/fc/log/file_appender.hpp b/include/fc/log/file_appender.hpp index dca0d6a..6f1fa6f 100644 --- a/include/fc/log/file_appender.hpp +++ b/include/fc/log/file_appender.hpp @@ -18,7 +18,7 @@ class file_appender : public appender { bool rotate = false; microseconds rotation_interval; microseconds rotation_limit; - uint32_t max_object_depth; + uint32_t max_object_depth = FC_MAX_LOG_OBJECT_DEPTH; }; file_appender( const variant& args ); ~file_appender(); diff --git a/include/fc/log/gelf_appender.hpp b/include/fc/log/gelf_appender.hpp index ba81c3d..1df2b2a 100644 --- a/include/fc/log/gelf_appender.hpp +++ b/include/fc/log/gelf_appender.hpp @@ -15,7 +15,7 @@ namespace fc { string endpoint = "127.0.0.1:12201"; string host = "fc"; // the name of the host, source or application that sent this message (just passed through to GELF server) - uint32_t max_object_depth; + uint32_t max_object_depth = FC_MAX_LOG_OBJECT_DEPTH; }; gelf_appender(const variant& args);