For a project I'm using Castle Windsor DI (new for me). The Castle.Core.Logging
namespace with its interface Logger
has these methods (also with Debug, Error etc):
void Fatal(string message, Exception exception);
void Fatal(string message);
However, when I'm using the methods with the exception parameter, it only logs the message, not the exception. I can't seem to figure out why it only logs the message, maybe I missed a setting? Currently NLog is used for logging. The logger is injected in a base class like this:
public ILogger Log { get; set; } = NullLogger.Instance;
This setup is from NLog and Castle Logging Facility for Logging
${exception}
? – Julian