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.

{
    std::lock_guard<std::mutex> scoped_lock(m_file_mutex);
    assert(m_buffering);
    assert(m_fileout == nullptr);
    if (m_print_to_file) {
        assert(!m_file_path.empty());
        m_fileout = fsbridge::fopen(m_file_path, "a");
        if (!m_fileout) {
            return false;
        }
        setbuf(m_fileout, nullptr); 
        
        
        FileWriteStr("\n\n\n\n\n", m_fileout);
    }
    
    m_buffering = false;
    while (!m_msgs_before_open.empty()) {
        const std::string& s = m_msgs_before_open.front();
        if (m_print_to_file) FileWriteStr(s, m_fileout);
        if (m_print_to_console) fwrite(s.data(), 1, s.size(), stdout);
        m_msgs_before_open.pop_front();
    }
    if (m_print_to_console) fflush(stdout);
    return true;
}
void BCLog::Logger::EnableCategory(BCLog::LogFlags flag)