These pieces of code:
https://github.com/bitcoin/bitcoin/blob/8ab4f282c06d67074b872dbda0be37636fdd5186/src/util/system.cpp#L302
and
https://github.com/bitcoin/bitcoin/blob/8ab4f282c06d67074b872dbda0be37636fdd5186/src/util/system.cpp#L864
do not work as expected because they are called before the `InitLogging()` call.

bool StartLogging();
        void ShrinkDebugFile();
        uint32_t GetCategoryMask() const { return m_categories.load(); }
        void EnableCategory(LogFlags flag);
        bool EnableCategory(const std::string& str);
        void DisableCategory(LogFlags flag);
        bool DisableCategory(const std::string& str);
        bool WillLogCategory(LogFlags category) const;
        bool DefaultShrinkDebugFile() const;
    };
} 
BCLog::Logger& LogInstance();
static inline bool LogAcceptCategory(BCLog::LogFlags category)