Feature #1808
closed
It would be good to have a way of specifying log filename in nlsr.conf
Added by Syed Amin over 10 years ago.
Updated about 10 years ago.
Description
Currently, nlsr takes a name of a directory and stores the log there as nlsr.log. It would be nice if we can change the name of the log file. This can provide flexibility in managing logs.
Why??? Naming of log files should not be the job of NLSR at all. It is job of the system to manage log files in the way system is managing them (e.g., using logrotate). I would vote no for this proposal.
The feature request was too specific and kind of misleading, sorry for that. I was actually looking for a way to redirect the log output to a file. At least there should be a way to specify the format of the log file. Currently, nlsr takes a name of a directory and stores the log there as nlsr.log, which I think is also restrictive.
- Subject changed from The log should have a timestamp in its filename for e.g. nlsr<timestamp>.log to It would be good to have a way of specifying log filename in nlsr.conf
- Description updated (diff)
- Assignee deleted (
A K M Mahmudul Hoque)
I've made this change in my local copy of nlsr. If this feature seems useful in general I can push it for reviewing. The new change allows to specify the filename of the log file by setting the "log-filename" variable in the conf file. If the log-filename is not provided then it is set to nlsr.log by default.
NLSR uses log4cxx. All of log4cxx options (which are really huge and allow tons of different options) can be exposed either in the same config file (hard) or there could be an option in the config file that specifies which log4cxx config file to use (easy).
- Priority changed from High to Normal
This feature is not required once Task #1950 is completed.
- Related to Feature #1950: Include log4cxx configuration file path in nlsr.conf added
- Status changed from New to Closed
- Status changed from Closed to New
This task is not closed. If the only reason for closing is that it duplicates #1950, then it should be abandoned and the reason for that should be mentioned.
- Status changed from New to Abandoned
This feature is not required once Task #1950 is completed.
Also available in: Atom
PDF