Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add date to ouput #37

Closed
ikehoff opened this issue Feb 3, 2012 · 5 comments
Closed

Add date to ouput #37

ikehoff opened this issue Feb 3, 2012 · 5 comments

Comments

@ikehoff
Copy link

ikehoff commented Feb 3, 2012

To make log files easier to track. Not every line needs to be dated, just insert one line with the date. To make reading appened cron output logs easier. I'm guessing make a date() funtion and call it later on. so it outputs only one date line per backup/restart/log-roll etc...

@Ahtenus
Copy link
Owner

Ahtenus commented Feb 6, 2012

Won't be fixed. I find the server.log to be best left as is. Adding such a function would just complicate matters unnecessarily.

@ikehoff
Copy link
Author

ikehoff commented Feb 6, 2012

I'm sorry, I misspoke. I am referring to stdout during execution of commands. I have already implemented this feature myself. Thanks :)

ex: /etc/init.d/minecraft backup
date
blah
blah
blah

@Ahtenus
Copy link
Owner

Ahtenus commented Feb 6, 2012

So you save the output from the init script somehow?
I guess more extensive usage of the system logger could be used (in a separate file).
Don't see much usage in it though.

@ikehoff
Copy link
Author

ikehoff commented Feb 6, 2012

Yes. /etc/init.d/minecraft backup >>/minecraft/cron.log
2>>/minecraft/cronerr.log

This is part of my crontabs execution line. So when I look at the logs, it
shows when it executed/errored
On Feb 6, 2012 3:58 PM, "Ahtenus" <
reply@reply.github.com>
wrote:

So you save the output from the init script somehow?
I guess more extensive usage of the system logger could be used (in a
separate file).
Don't see much usage in it though.


Reply to this email directly or view it on GitHub:
#37 (comment)

@Ahtenus
Copy link
Owner

Ahtenus commented Feb 8, 2012

Ok, I see. The majority of the users probably don't save logs that way and it would make the output even more verbose than they already are. But more extensive use of the syslogger (via the command logger) could probably be used. Nothing I'll add any time soon though.

@Ahtenus Ahtenus closed this as completed Mar 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants