Loggers
Available loggers:
- LogHub
- Informer
- Analogger
- Syslog
- KNotify
- XOSD (now defunct?)
The default logger is the ''LogHub'' which supports all other loggers (including itself) and serves as a kind of redirection.
The default logger within ''LogHub'' is the ''Informer'', which prints nicely colored logs to stdout.
To simply store a copy of the logs in a file:
Ramaze::Log.loggers << Ramaze::Informer.new('inform.log')
For a faster, more flexible alternative, use the high performance Swiftcore Analogger
Ramaze::Log.loggers = [Ramaze::Informer.new, Ramaze::Analogger.new('ramaze')]
To exchange the logger itself, just replace the ''Ramaze::Log'' constant:
Ramaze::Log = Ramaze::Analogger.new('ramaze') # or without warning module Ramaze remove_const :Log Log = Analogger.new('ramaze') end
