If log dir is set on pseriecollector.toml the following error will appear and it won't create the log file:
pseriescollector[#PID#]: Failed to write to log, invalid argument
pseriescollector.toml:
...
[general]
#InstanceID will be a string identifiing the collector , It will be usefull when
# more than one running on the same server, this ID will be shown in the WebUI.
instanceID = "pseriescollector_PRO"
#there are as many logs as devices configured and
#logdir set the Directory path for each device individual log
logdir = "./log"
#NOTE: main process log is now sent to standar ouput
# logLevel set de main process log level
# valid values: panic,fatal,error,warn,info,debug
logLevel = "debug"
...
If log dir is set on pseriecollector.toml the following error will appear and it won't create the log file:
Config: