Skip to content

autoReload not working if config file get replaced #298

@gordingin

Description

@gordingin

I have a windows service in Windows 8.1 that uses nlog. I have to trace messages, one with a Info Level and one with a Debug Level. I configure NLog.Config to use both Info and Debug and run my service. The log file produces the correct data. Then I edit the NLog.config file and remove Info, save it, delete MY log file and rerun the process that produces the log file. I still get Debug and Info log message. If I stop and stop the windows service with the revised config file, it then only produces Debug message.
I do have the autoReload="true" in the config file but for some reason, it does reread the config file after I changed and save it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions