Project

General

Profile

Actions

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.

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 1 (0 open1 closed)

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

Actions
Actions #1

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.

Actions #2

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.

Actions #3

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)
Actions #4

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.

Actions #5

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).

Actions #6

Updated by Syed Amin over 10 years ago

  • Priority changed from High to Normal
Actions #7

Updated by Syed Amin over 10 years ago

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

Actions #8

Updated by Vince Lehman over 10 years ago

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

Updated by Vince Lehman over 10 years ago

  • Status changed from New to Closed
Actions #10

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.

Actions #11

Updated by Ashlesh Gawande about 10 years ago

  • Status changed from New to Abandoned

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

Actions

Also available in: Atom PDF