more usefull naming for log files

Want something added? Ask for it here.
Post Reply
nzb_leecher
Full Member
Full Member
Posts: 211
Joined: January 22nd, 2008, 1:38 pm

more usefull naming for log files

Post by nzb_leecher »

When sab makes 3 log files i first have to rename each them to .txt so notepad can view them.

why not a usefull name like
sabnzbd.log.1.txt
sabnzbd.log.2.txt
sabnzbd.log.3.txt

or
sabnzbd01.log.txt
sabnzbd02.log.txt
sabnzbd03.log.txt


Instead of:
sabnzbd.log.1
sabnzbd.log.2
sabnzbd.log.3


Thanks
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: more usefull naming for log files

Post by rascalli »

for me it works to open with notepad.
No need to rename
nzb_leecher
Full Member
Full Member
Posts: 211
Joined: January 22nd, 2008, 1:38 pm

Re: more usefull naming for log files

Post by nzb_leecher »

rascalli wrote: for me it works to open with notepad.
No need to rename
Also via a doubleclick on the logfile? Here it ask me wich program i have to use to view the "log.2" file.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: more usefull naming for log files

Post by shypike »

I'll check if there's a simple way to do this.
The names are generated by the internal Python logger.
sabnzbd.1.log etc would be best.

The ".log" extension is associated with Notepad by default.
nzb_leecher
Full Member
Full Member
Posts: 211
Joined: January 22nd, 2008, 1:38 pm

Re: more usefull naming for log files

Post by nzb_leecher »

shypike wrote: I'll check if there's a simple way to do this.
The names are generated by the internal Python logger.
sabnzbd.1.log etc would be best.

The ".log" extension is associated with Notepad by default.
Any succes with this one?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: more usefull naming for log files

Post by shypike »

Not really. The naming system is hard-coded in the Python logger.
I don't feel like re-writing part of the Python library to solve this problem.
It's just not worth it.

You could add a shortcut to notpad to the SendTo folder.
That way you can right-click the logfile and say "Send to: Notepad".
Last edited by shypike on April 5th, 2008, 3:49 am, edited 1 time in total.
nzb_leecher
Full Member
Full Member
Posts: 211
Joined: January 22nd, 2008, 1:38 pm

Re: more usefull naming for log files

Post by nzb_leecher »

ok thanks for looking into it.
Post Reply