I whish configure logger, adding a prefix in all “logger.error(…)”, a
prefix like “ERROR------------------>”, to be able, then to search in
log file, easily.
And to do that I had the idea of reopen Logger class, like this:
In a file placed in \initializers\ I put
But this doesn’t do anything, ¿ where do I have to put this code ?
And if I put in config/environments/development.rb
config.logger = Logger.new(STDOUT)
raises an error: [super: no superclass method `error’ for
Could someone guide me for the right way? I’m absolutly lost.
What does usually people do to look for in the “great” production.log
I know, if I put config.log_level = :warn, this file would be thin, but
I supose than this “info” messages are important to understand the whole
Thanks a lot.