[Red5devs] Log messages

Walter Tak walter at waltertak.com
Wed Oct 29 07:52:40 PST 2008


What is "e" ?
What is "job" ?

Can you give us a preferred example if I would want to print , say , a simple variable.
Can you give us a preferred example if I would want to print , say , multiple variables.

I'm sure I can figure this out in 2 minutes but it would be good if it's explicitly written down for all other developers, just in case.

Regards,
Walter
  My fellow devs..
  When you create log messages please use this form


  log.error("Job {} execution failed", job.toString(), e);



  instead of using string concatenation



  log.error("Job " + job.toString() + " execution failed", e);



  The logging system is optimized to handle parameter replacements with incurring a concat penalty. Ill update the wiki about it one of these days..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5devs_osflash.org/attachments/20081029/b3effe4c/attachment-0001.html>


More information about the Red5devs mailing list