How to configure logger


#1

Hi there,

Is there a way to configure a logger formatter like in rails? Am trying to use the following formatter:

class LogFormatter < Logger::Formatter
    def call(severity, time, progname, msg)
        "#{datetime}, #{severity}: #{message} from #{programName}\n"
    end
end`

What do I need to set in config/application.rb to use my formatter? Tried multiple variations but did not work


#2

Currently not possible. Would like to improve control over log formatting in time. Unsure when.


#3

thanks for the fast response