Skip to main content

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

Hi Romu,

If you're using the file log destination then yes, the broker does not
flush the logs after each write. It is entirely up to buffering on
your OS as to when it is actually written to disk.

As Karl says, you can always use syslog.

Cheers,

Roger


On Fri, Oct 31, 2014 at 10:55 AM, Romu Hu <huruomu@xxxxxxxxx> 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
>
> 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?
>
>
> Thanks
> Romu
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top