Parameters
- message
- The message to write to the log.
- exception
- An exception, if applicable, whose details will be included with the message.
Logger logger = Log.GetLogger(); Exception exc = new NullReferenceException("An error has occurred!"); logger.Error("This is an error log!", exc);