config.paths["log"]
に指定する。
config/application.rb
config.paths["log"] = "log/#{Rails.env}_hoge.log"
ロガーのインスタンス自体を指定する場合にはconfig.logger
に指定する。
config/application.rb
config.logger = Logger.new($stdout)
We'll deliver articles that match you.
You can read useful information later.
Go to list of users who liked
More than 5 years have passed since last update.
config.paths["log"]
に指定する。
config.paths["log"] = "log/#{Rails.env}_hoge.log"
ロガーのインスタンス自体を指定する場合にはconfig.logger
に指定する。
config.logger = Logger.new($stdout)
Register as a new user and use Qiita more conveniently
Go to list of users who liked