I have an app. that appears to be “successfully” deployed to Websphere
through warbler, but my production.log file is being written to the
machine’s root directory “/”, instead of to the log directory under
WEB-INF. I think I saw something while I was Googling about this a
couple of days ago, but I can’t remember - has anyone experienced it?
I have an app. that appears to be “successfully” deployed to Websphere
through warbler, but my production.log file is being written to the
machine’s root directory “/”, instead of to the log directory under WEB-INF.
I think I saw something while I was Googling about this a couple of days
ago, but I can’t remember - has anyone experienced it?
Yikes! This is probably an artifact of the call to
ServletContext.getRealPath not returning anything useful (e.g., null).
I have it on my list to work up a different mechanism for determining
the location of RAILS_ROOT.
I think I saw something while I was Googling about this a couple of days
ago, but I can’t remember - has anyone experienced it?
Yikes! This is probably an artifact of the call to
ServletContext.getRealPath not returning anything useful (e.g., null).
I have it on my list to work up a different mechanism for determining
the location of RAILS_ROOT.
Here’s my MERB_ROOT/config/environments/production.rb:
I could swear that when I first started deploying into the container
that the log file would be in the correct place, but now it’s not. I
suspect that perhaps Merb.log_path evaluates to nil, although I haven’t
checked yet.
the log directory, as you would expect:
Can you file a bug for this and/or add something to the wiki? I suspect
this could bite others using WebSphere very easily.
through warbler, but my production.log file is being written to the
the location of RAILS_ROOT.
Here’s my MERB_ROOT/config/environments/production.rb:
Merb.logger.info(“Loaded PRODUCTION Environment…”)
Merb::Config.use { |c|
c[:exception_details] = false
c[:reload_classes] = false
c[:log_level] = :error
c[:log_file] = Merb.log_path + “/production.log”
}
If I modify my production.rb slightly, like so - the logging occurs in
the log directory, as you would expect: