Hi Janko, 2012/5/15 Janko Mivšek <[email protected]>: > Hi Masashi, > > Quite interesting logging library, thanks! Some questions: > > - can logging be done in background process to improve performance, for > example for burst of web requests?
Sorry for the very very late reply. I missed your questions. > - can you log Transcript too? As for outputting log to Transcript, it is not possible by default. However you can subclass NgLog for multiplexing log outputs. But actually the need for multiprexing in Smalltalk side is very limited since fluentd itself has nice log multiplexing feature. > - can logging be done in background process to improve performance, for > example for burst of web requests? I've not tested Nagare in such a hard condition, but I think it can handle quite lots of logging requests. Fluentd uses very lightweight binary protocol (MessagePack) and has nice non-blocking log-event queue. Nagare just sends a small packet to fluentd and immediately returns for further requests, fluend does the other log-related jobs (storing to files, collecting logs from other sources, etc). Of course, you can utilize multi-core power here. > Best regards > Janko > > Dne 15. 05. 2012 02:48, piše Masashi UMEZAWA: >> Hello all, >> >> I have recently developed a new logging library called Nagare. >> http://code.google.com/p/nagare-logger/ >> >> Nagare is designed to be simple and scalable. >> Contrary to other logging frameworks which provide rich set of log >> output methods (file, socket, DB, etc.), Nagare just connects to >> fluentd (http://fluentd.org). And Fluentd does the various log >> processing jobs. >> >> Features: >> - Simple log interfaces with reliable backend >> - Semi-structured logging (Not only String, you can store structured >> records in log) >> - Flexible - you can easily customise log-tags, log policy, etc. >> - Portable (runs on Squeak, Pharo, VisualWorks) >> >> Enjoy! > > -- > Janko Mivšek > Aida/Web > Smalltalk Web Application Server > http://www.aidaweb.si > -- [:masashi | ^umezawa]
