As you might know, Java from version 1.4 does contain standard logging facilities for logging errors, debug messages, warnings, etc. Those classes reside in java.util.logging package, and are quite nice since you just use standard Java mechanism to log events, and you don't need any external library to do it. Lot of existing libraries are using these classes as well. So I have made a small addin for Tornado which transfers all java logging events to Tornado logs. Feel free to have a look at it, and send me some comments.
The packaged addin is here .
To run this addin copy the jar file to addins folder under your Tornado installation directory, and add "puakma.addin.log.LogAddin" to AddIns in puakma.config file, and reload server. I have done also testing addin: puakma.addin.log.TestLogAddin which is periodically sending some java logging events, so you might have a look how to use it.
Future - I want to make it better [-; I want to add some better configuration handling, and better formating since this is just hard coded stuff. Also maybe I will add support for Apache log4j library. But this is just the beginning.
I also have some links about java logging you might have a look at:
| 01 | 02 | 03 | 04 | 05 | 06 | |
| 07 | 08 | 09 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |