Export to GitHub

weed-fs - issue #30

feature request - time in logs, logrotate and syslog support


Posted on Jul 13, 2013 by Massive Cat

Please add support for:

  1. time in log files
  2. logrotate support for log files
  3. log to syslog

Comment #1

Posted on Jul 13, 2013 by Massive Cat

https://code.google.com/p/log4go/ might be useful.

Comment #2

Posted on Jul 13, 2013 by Quick Horse

1 and 2 can be handles by another program specifically written with such purpose, for example runit's svlogd.

Comment #3

Posted on Aug 14, 2013 by Grumpy Cat

Latest version has switched to glog.

I found it is a very rough library. And I have to copy the source code in order to adjust some settings.

But in general, the time in logs, logrotate.

I don't quite understand the "syslog support" requirement though. By default, glog generate logs under /tmp, with a sophisticated naming convention. The log directory can be configured by -log_dir=""

Comment #4

Posted on Aug 30, 2013 by Grumpy Cat

(No comment was entered for this change.)

Comment #5

Posted on Oct 9, 2013 by Massive Cat

flag provided but not defined: -log_dir. So, how can I specify log dir?

What I mean with "syslog support" is a simple way to aggregate all logs across nodes.

Comment #6

Posted on Oct 9, 2013 by Grumpy Cat

Comment deleted

Comment #7

Posted on Mar 17, 2014 by Grumpy Cat

To run with glog, you need to specify glog flags between "weed" and weed command , e.g., "volume", "master":

weed -v=2 master weed -log_dir=. volume

Status: Fixed

Labels:
Type-Enhancement Priority-Medium