Feature #1808
closedIt would be good to have a way of specifying log filename in nlsr.conf
0%
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.
Updated by Alex Afanasyev over 10 years ago
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.
Updated by Syed Amin over 10 years ago
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.
Updated by Syed Amin over 10 years ago
- 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)
Updated by Syed Amin over 10 years ago
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.
Updated by Alex Afanasyev over 10 years ago
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).
Updated by Syed Amin over 10 years ago
This feature is not required once Task #1950 is completed.
Updated by Vince Lehman over 10 years ago
- Related to Feature #1950: Include log4cxx configuration file path in nlsr.conf added
Updated by Alex Afanasyev over 10 years ago
- 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.
Updated by Ashlesh Gawande about 10 years ago
- Status changed from New to Abandoned
This feature is not required once Task #1950 is completed.