Project

General

Profile

Feature #1808

It would be good to have a way of specifying log filename in nlsr.conf

Added by Syed Amin almost 6 years ago. Updated over 5 years ago.

Status:
Abandoned
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/29/2014
Due date:
% Done:

0%

Estimated time:

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.


Related issues

Related to NLSR - Feature #1950: Include log4cxx configuration file path in nlsr.confClosedMuktadir Chowdhury08/29/2014

Actions
#1

Updated by Alex Afanasyev almost 6 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.

#2

Updated by Syed Amin almost 6 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.

#3

Updated by Syed Amin almost 6 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)
#4

Updated by Syed Amin almost 6 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.

#5

Updated by Alex Afanasyev almost 6 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).

#6

Updated by Syed Amin almost 6 years ago

  • Priority changed from High to Normal
#7

Updated by Syed Amin almost 6 years ago

This feature is not required once Task #1950 is completed.

#8

Updated by Vince Lehman almost 6 years ago

  • Related to Feature #1950: Include log4cxx configuration file path in nlsr.conf added
#9

Updated by Vince Lehman almost 6 years ago

  • Status changed from New to Closed
#10

Updated by Alex Afanasyev almost 6 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.

#11

Updated by Ashlesh Gawande over 5 years ago

  • Status changed from New to Abandoned

This feature is not required once Task #1950 is completed.

Also available in: Atom PDF