Skip to content
Nikita Roshupkin edited this page Oct 15, 2015 · 2 revisions
[
    {chronica,[
        {rules,[
                {file_info_log,     "*",    info,  [file_info_log], on},
                {error_log,    "*",    error, [error_log], on},
                {screen_info_log,     "*",    info,  [screen_info_log], on}
        ]},
        {flows,[
                {file_info_log, [{file, "console.log"}]},
                {error_log, [{file, "error.log"}]},
                {screen_info_log, [{tty, short}]}
        ]},
        {formats,[
                {short, "%H:%Mi:%S.%Ms [%Priority] %Message\n"},
                {default, "%Y-%M-%D %H:%Mi:%S.%Ms %PRIORITY %Pid[%Module:%Function:%Line]: %Message\n"}
        ]},
        {active, true},
        {rotate_at_start, false},
        {detail_info, false},
        {tty_enabled, true},
        {tcp_port, 0},
        {tcp_host, any},
        {log_root, "./log_<Node>/"},
        {data_root, "./cache_<Node>/"},
        {max_file_size, 10485760},
        {max_file_num, 10},
        {internal_logger, [{file,"chronica",{101048576,1},info}, {tty,error}] },
        {colored, {true,
            [
                {'DataTime',
                        [{foreground, yellow}]
                },
                {'Pid', [
                        {foreground, white},
                        {bold, true}
                ]},
                {'File', [
                        {foreground, gray}
                ]},
                {'Line', [
                        {foreground, green}
                ]},
                {'Module', [
                        {foreground, cyan},
                        {bold, true}
                ]},
                {'Function', [
                        {foreground, white}
                ]},
                {'UserStr', [
                        {foreground, white}
                ]},
                {'UserStrLine', [
                        {foreground, white}
                ]},
                {'Error', [
                        {foreground, white},
                        {background, red},
                        {bold, true}
                ]},
                {'Warning', [
                        {foreground, red},
                        {bold, true}
                ]},
                {'Info', [
                        {foreground, white},
                        {bold, true}
                ]},
                {'Debug', [
                        {foreground, gray},
                        {bold, true}
                ]},
                {'Trace', [
                        {foreground, blue},
                        {bold, true}
                ]}
            ]
        }}
    ]}
].
Clone this wiki locally