rfminelli / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
GNU General Public License v2.0
0 stars 0 forks source link

Device to read on-the-fly access.log #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
add support to create device 'file' to cath 'on-the-fly' logs from access.log

like: tail -f /dev/lusca.access.log

Original issue reported on code.google.com by ajcor...@gmail.com on 26 May 2009 at 7:31

GoogleCodeExporter commented 8 years ago
Logfile_daemon may achieve this issue if access log is a fifo.

BTW, I haven't tested ;-)

Original comment by lucas.br...@gmail.com on 28 May 2009 at 4:35

GoogleCodeExporter commented 8 years ago
Yes, its quite possible to log to a FIFO. There -are- operating system 
weirdnesses
(at least FreeBSD has some still :) for doing poll on a FIFO. I forget the 
details.

In any case, a FIFO or unix domain socket is completely doable. I may have to do
something with this myself soon to keep some stats on the fly; post-processing 
logs
just isn't scaling. :)

Original comment by adrian.c...@gmail.com on 18 Jul 2009 at 12:09