* NEW [conf] add log config to nanomq.conf
@@ -241,3 +241,34 @@ rule_engine_option.db=sqlite
##
## Value: File
rule_engine_option.db.sqlite_path=rule_engine.db
+
+## Where to emit the logs.
+##
+## - file: write logs to file
+## - console: write logs to standard I/O
+## - syslog: write logs to syslog
+## Value: file | console | syslog
+## Example: file,console,syslog
+log.to=file,console
+
+## The log severity level.
+##
+## Value: trace | debug | info | warn | error | fatal
+##
+## Note: Only the messages with severity level higher than or equal to
+## this level will be logged.
+##
+## Default: warn
+log.level = warn
+
+## The dir for log files.
+##
+## Value: Folder
+log.dir=/tmp
+
+## The log filename for logs of level specified in "log.level".
+##
+## Value: String
+## Default: nanomq.log
+log.file=nanomq.log
+
