Skip to content

LogInit

LogInit

Description

Initialize logging subsystem

Is lazily called if not called by user at start of program.

Parameters

Name Direction Description
redirect in When true, redirect output to temporary file

Success

Logging system ready for use

Failure

Logging remains uninitialized (will lazy-init later)

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    void LogInit(bool redirect) {
        if (redirect) {
            // Get the current time
        // Initialize log if not already
        if (!stderror) {
            LogInit(false);
        }
        }
    
        LogInit(false);
    
        const char *config_path = argv[1];
    
    int main(int argc, char **argv) {
        LogInit(false);
    
        if (argc < 2 || argc > 3) {
Last updated on