/// <summary> /// Method to logs with 4 parameters /// </summary> /// <param name="logMessage">Text of message</param> /// <param name="logLevel">Level og loggining</param> /// <param name="dateTime">Date and time creating logs</param> /// <param name="module">Methods which has logs</param> public void Log(string logMessage, LogLevel logLevel, DateTime dateTime, string module) { var writeToFile = new WriteToFile(); writeToFile.AddToXml(logMessage, logLevel, dateTime, module, Path); }
/// <summary> /// Method to logs with 2 parameters /// </summary> /// <param name="logMessage">Text of message</param> /// <param name="logLevel">Level og loggining</param> public void Log(string logMessage, LogLevel logLevel) { var writeToFile = new WriteToFile(); writeToFile.AddToXml(logMessage, logLevel, DateTime.Now, null, Path); }