A simple logger lib search and reference nuget package "xySoft.log" log file: /log/log.log sample: XyLog.log("log information"); XyLog.log(e); //e is a Exception