[Red5devs] Log messages
mabrek
mabrek at gmail.com
Wed Oct 29 21:18:47 PST 2008
Mondain wrote:
> My fellow devs..
> When you create log messages please use this form
>
> log.error("Job {} execution failed", job.toString(), e);
>From http://www.slf4j.org/apidocs/org/slf4j/Logger.html
void error(String msg)
void error(String format, Object arg)
void error(String format, Object[] argArray)
void error(String format, Object arg1, Object arg2)
void error(String msg, Throwable t)
Only the last form prints exception stacktrace to log.
log.error("Job {} execution failed", job.toString(), e) invocation
is handled by method error(String format, Object arg1, Object arg2).
We have one {} mark, so only the first object (job name) goes to log message without exception and stacktrace.
More information about the Red5devs
mailing list