TwP / logging

A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
https://rubygems.org/gems/logging
MIT License
530 stars 101 forks source link

Log directory is not created #183

Closed boonware closed 6 years ago

boonware commented 6 years ago

If the configured log file is in a directory and the directory does not exist then the application fails. For example, if my log file is log/service.log and the directory log does not exist then I get the error message log is not writable. It would be better if this recovered and attempted to create the directory itself.

TwP commented 6 years ago

Setting up the filesystem for the application is outside the purview of the logging gem. Ownership and permissions for the log directory will need to be specified, and that is going to add complexity.