|| at Nov 29, 2012 at 6:45 am
at the service init func:
srvlog, _ := syslog.New( syslog.LOG_ERR , "myservice" )
then I use syslog.Notice(********) / syslog.Info(********)
/ syslog.Warning(********) such things in other funcs
the question is, when the log rolled, my program won't write log to
/var/log/message ( of cause not, the file descriptor changed )
and to void this, I must reopen the log file use syslog.New every time
before writing log?
在 2012年11月29日星期四UTC+8下午1时38分45秒，Dave Cheney写道：
Can you please post some sample code demonstrating the issue.
To the best of my knowledge, log rolling is an implementation detail
of syslog/rsyslog/syslog-ng and it intended to be transparent to the
On Thu, Nov 29, 2012 at 4:27 PM, feeling4t wrote:
I'm working on a service program, which runs for months, even for years.
In my test, I found my program doesn't write syslog, while other things goes
Now I know the rsyslogd will move /var/log/messages as
the question is, need I reopen the log file use syslog.newLogger before
every time I write log?
Or is there some better way to solve this problem?