Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] mosquitto logging

On Fri, Oct 31, 2014 at 06:55:48PM +0800, Romu Hu wrote:
> Hi,
> 
> It seems that mosquitto logs are not immediately written into the
> log file, if you run tail -f /var/log/mosquitto.log, you can see a
> line stops in the middle, e.g.
> 
> 1414752777: New connection from xxx.xxx.xxx.xxx on port xxxx.
> 1414752777: New client connecte

I don't see this, and it might be indicative of other problems you have.
> 
> It seems that logs are flushed into the log file every couple of
> minutes or when the broker restarts.  How to make the logs go
> immediately into the log file?
> 
> And how to make the timestamp more human readable?

just use syslog instead.

Cheers,
Karl P


Back to the top