MinimServer Forum
Feature request: date/time in log - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Feature request: date/time in log (/showthread.php?tid=461)



Feature request: date/time in log - NickP - 26-01-2013 13:01

A timestamp for entries in the log would help me greatly in fixing tags that Minim Server reports as defective; it would allow me to confirm whether I am seeing a new issue or not.
NickP


RE: Feature request: date/time in log - simoncn - 26-01-2013 13:21

(26-01-2013 13:01)NickP Wrote:  A timestamp for entries in the log would help me greatly in fixing tags that Minim Server reports as defective; it would allow me to confirm whether I am seeing a new issue or not.
NickP

MinimServer supports this, but there isn't currently an option in the Properties dialog to enable it. You can enable it manually by adding the line

.logPrefix = dateTime

at the end of the minimserver.config file. If you're not sure how to locate and change this file, please let me know which platform you're using to run MinimServer.


RE: Feature request: date/time in log - NickP - 26-01-2013 19:39

(26-01-2013 13:21)simoncn Wrote:  
(26-01-2013 13:01)NickP Wrote:  A timestamp for entries in the log would help me greatly in fixing tags that Minim Server reports as defective; it would allow me to confirm whether I am seeing a new issue or not.
NickP

MinimServer supports this, but there isn't currently an option in the Properties dialog to enable it. You can enable it manually by adding the line

.logPrefix = dateTime

at the end of the minimserver.config file. If you're not sure how to locate and change this file, please let me know which platform you're using to run MinimServer.

I'm using a TurboNas 419P2. And, not so much "unsure" as "not got a clue"!!


RE: Feature request: date/time in log - simoncn - 26-01-2013 20:28

(26-01-2013 19:39)NickP Wrote:  I'm using a TurboNas 419P2. And, not so much "unsure" as "not got a clue"!!

This might be a bit difficult if you're unfamiliar with SSH and basic Linux commands. I'll put it on the list of things to add in a future release.


RE: Feature request: date/time in log - NickP - 27-01-2013 12:46

[/quote]
This might be a bit difficult if you're unfamiliar with SSH and basic Linux commands. I'll put it on the list of things to add in a future release.
[/quote]
OK.
I'm probably not as clueless as I suggested, but equally I've got done the things for which a timestamp would have been helpful, so I'm very happy to wait, rather than create a support issue for you over something that's not urgent.
Thanks for the attention.
N


RE: Feature request: date/time in log - simoncn - 27-01-2013 13:45

(27-01-2013 12:46)NickP Wrote:  OK.
I'm probably not as clueless as I suggested, but equally I've got done the things for which a timestamp would have been helpful, so I'm very happy to wait, rather than create a support issue for you over something that's not urgent.
Thanks for the attention.
N

Here are the instructions. If they aren't useful to you, they might be useful to someone else.

1) Disable MinimServer in the QNAP QPKG Center

2) SSH in to your QNAP NAS

3) The file to edit might be in one of two different locations, depending on the model of QNAP NAS. It will be one of the following:
/share/HDA_DATA/.qpkg/MinimServer/data/minimserver.config
/share/MD0_DATA/.qpkg/MinimServer/data/minimserver.config

4) Edit this file to add the following line at the end:
.logPrefix = dateTime

5) Enable MinimServer in the QNAP QPKG Center


RE: Feature request: date/time in log - NickP - 27-01-2013 18:35

(27-01-2013 13:45)simoncn Wrote:  3) The file to edit might be in one of two different locations, depending on the model of QNAP NAS. It will be one of the following:
/share/HDA_DATA/.qpkg/MinimServer/data/minimserver.config
/share/MD0_DATA/.qpkg/MinimServer/data/minimserver.config
Thanks; this doesn't look too scarey.

Hmmm... neither contains a .qpkg directory:

[/share/MD0_DATA] # ls -l
drwxrwxrwx 2 admin administ 4096 May 14 2012 Download/
drwxrwxrwx 11 admin administ 4096 Jan 26 12:07 Multimedia/
drwxrwxrwx 6 admin administ 4096 Jan 26 12:03 Network Recycle Bin/
drwxrwxrwx 11 admin administ 4096 Jan 26 12:07 Public/
drwxrwxrwx 2 admin administ 4096 Feb 1 2012 Recordings/
drwxrwxrwx 2 admin administ 4096 Feb 1 2012 Usb/
drwxrwxrwx 2 admin administ 4096 Jan 26 12:07 Web/
-rw------- 1 admin administ 8192 Jan 16 16:49 aquota.user
drwx------ 2 admin administ 16384 Feb 1 2012 lost+found/

... or perhaps I've misunderstood? (And of course, if you wish to say "Hmmm... please wait for this to be incorporated into a future release", please do so!)

N


RE: Feature request: date/time in log - simoncn - 27-01-2013 19:07

(27-01-2013 18:35)NickP Wrote:  
(27-01-2013 13:45)simoncn Wrote:  3) The file to edit might be in one of two different locations, depending on the model of QNAP NAS. It will be one of the following:
/share/HDA_DATA/.qpkg/MinimServer/data/minimserver.config
/share/MD0_DATA/.qpkg/MinimServer/data/minimserver.config
Thanks; this doesn't look too scarey.

Hmmm... neither contains a .qpkg directory:

[/share/MD0_DATA] # ls -l
drwxrwxrwx 2 admin administ 4096 May 14 2012 Download/
drwxrwxrwx 11 admin administ 4096 Jan 26 12:07 Multimedia/
drwxrwxrwx 6 admin administ 4096 Jan 26 12:03 Network Recycle Bin/
drwxrwxrwx 11 admin administ 4096 Jan 26 12:07 Public/
drwxrwxrwx 2 admin administ 4096 Feb 1 2012 Recordings/
drwxrwxrwx 2 admin administ 4096 Feb 1 2012 Usb/
drwxrwxrwx 2 admin administ 4096 Jan 26 12:07 Web/
-rw------- 1 admin administ 8192 Jan 16 16:49 aquota.user
drwx------ 2 admin administ 16384 Feb 1 2012 lost+found/

... or perhaps I've misunderstood? (And of course, if you wish to say "Hmmm... please wait for this to be incorporated into a future release", please do so!)

N

To see the .qpkg directory, you need to use 'ls -al' instead of 'ls -l'. In Linux, directory and file names starting with a '.' are "hidden" and don't show up unless you add the '-a' option to 'ls'.


RE: Feature request: date/time in log - NickP - 27-01-2013 19:43

(27-01-2013 19:07)simoncn Wrote:  
(27-01-2013 18:35)NickP Wrote:  
(27-01-2013 13:45)simoncn Wrote:  3) The file to edit might be in one of two different locations, depending on the model of QNAP NAS. It will be one of the following:
/share/HDA_DATA/.qpkg/MinimServer/data/minimserver.config
/share/MD0_DATA/.qpkg/MinimServer/data/minimserver.config
Thanks; this doesn't look too scarey.

Hmmm... neither contains a .qpkg directory:

[/share/MD0_DATA] # ls -l
drwxrwxrwx 2 admin administ 4096 May 14 2012 Download/
drwxrwxrwx 11 admin administ 4096 Jan 26 12:07 Multimedia/
drwxrwxrwx 6 admin administ 4096 Jan 26 12:03 Network Recycle Bin/
drwxrwxrwx 11 admin administ 4096 Jan 26 12:07 Public/
drwxrwxrwx 2 admin administ 4096 Feb 1 2012 Recordings/
drwxrwxrwx 2 admin administ 4096 Feb 1 2012 Usb/
drwxrwxrwx 2 admin administ 4096 Jan 26 12:07 Web/
-rw------- 1 admin administ 8192 Jan 16 16:49 aquota.user
drwx------ 2 admin administ 16384 Feb 1 2012 lost+found/

... or perhaps I've misunderstood? (And of course, if you wish to say "Hmmm... please wait for this to be incorporated into a future release", please do so!)

N

To see the .qpkg directory, you need to use 'ls -al' instead of 'ls -l'. In Linux, directory and file names starting with a '.' are "hidden" and don't show up unless you add the '-a' option to 'ls'.

Now THAT is SUPERB! The log makes SO MUCH more sense with that date/time at the start of the line.

Thank you - and, thank you for your (continued!) forbearance.

N