Erlang logging example from #erlang
[5:24pm] Toad: anyone have a pointer for a good intro on error logging in production machines?
[5:24pm] Toad: e.g. the various error_logger modules, whether I should implement my own event handlers, etc?
[5:33pm] lisppaste4: archaelus pasted "system config snippet for prod logging" at http://paste.lisp.org/display/55103
[5:33pm] archaelus: Toad: that's what I use - to access logs in production I use rb
[5:34pm] archaelus: erl -remsh prodnode -name consolenode, rb:rescan([{max,10},{type, [error]}]), rb:list() and so on
[5:59pm] Toad: cool, thanks archaelus
{sasl, [{sasl_error_logger, {file, "priv/log/sasl.log"}},
{error_logger_mf_dir, "priv/log/sasl"},
{error_logger_mf_maxfiles, 20},
{error_logger_mf_maxbytes, 524288}, %512Kb log files
{releases_dir, "releases"}
]}
[5:24pm] Toad: e.g. the various error_logger modules, whether I should implement my own event handlers, etc?
[5:33pm] lisppaste4: archaelus pasted "system config snippet for prod logging" at http://paste.lisp.org/display/55103
[5:33pm] archaelus: Toad: that's what I use - to access logs in production I use rb
[5:34pm] archaelus: erl -remsh prodnode -name consolenode, rb:rescan([{max,10},{type, [error]}]), rb:list() and so on
[5:59pm] Toad: cool, thanks archaelus
{sasl, [{sasl_error_logger, {file, "priv/log/sasl.log"}},
{error_logger_mf_dir, "priv/log/sasl"},
{error_logger_mf_maxfiles, 20},
{error_logger_mf_maxbytes, 524288}, %512Kb log files
{releases_dir, "releases"}
]}