halfgaar / FlashMQ

FlashMQ is a fast light-weight MQTT broker/server, designed to take good advantage of multi-CPU environments
https://www.flashmq.org/
Open Software License 3.0
175 stars 24 forks source link

Logging to stdout #108

Closed Bartarian closed 6 days ago

Bartarian commented 6 days ago

I don't understand the documentation, there is a reference about logging to stdout, but looking at code I believe that's not possible to do that.

Manual: https://github.com/halfgaar/FlashMQ/blob/b9b680cba7f78eef39aeac6b6e9b4181b06ea571/man/flashmq.conf.5#L74

halfgaar commented 6 days ago

The sentence is broken, but what it means, is that if you don't include a log_file config directive, the log output will go to stdout.

It's here:

https://github.com/halfgaar/FlashMQ/blob/b9b680cba7f78eef39aeac6b6e9b4181b06ea571/logger.cpp#L299

halfgaar commented 6 days ago

I fixed the documentation:

https://github.com/halfgaar/FlashMQ/commit/439e5d67140bf209ed37d573576068c2800c5249

The on-line man page won't be updated until the next release though.

I think that resolves the issue.