I read the Rails doc about Tagged logger, it seems great , but I am missing some stuff :
- where should I define the Logger class :
Logger = ActiveSupport::TaggedLogging.new( File.join(Rails.root, "log", "new_logger_#{Rails.env}.log)
- is it possible to define multiple Logger classes to output into different log files ?
LoggerA = ActiveSupport::TaggedLogging.new( File.join(Rails.root, "log", "new_logger_A_#{Rails.env}.log)
LoggerB = ActiveSupport::TaggedLogging.new( File.join(Rails.root, "log", "new_logger_B_#{Rails.env}.log)
thanks for feedback