public void Write(ILogFactory logFactory, LogLevel logLevel, LogInformationDto logInformation)
        {
            var log = logFactory.CreateLog(logInformation.Component ?? logInformation.AppName);

            Exception mockException = null;

            if (!string.IsNullOrEmpty(logInformation.ExceptionType) || !string.IsNullOrEmpty(logInformation.CallStack))
            {
                mockException = new Exception($"{logInformation.ExceptionType} : {logInformation.CallStack}");
            }

            log.Log(logLevel,
                    0,
                    new LogEntryParameters(logInformation.AppName,
                                           logInformation.AppVersion,
                                           logInformation.EnvInfo ?? "?",
                                           logInformation.CallerFilePath ?? "?",
                                           logInformation.Process ?? "?",
                                           logInformation.CallerLineNumber > 0 ? logInformation.CallerLineNumber.Value : 1,
                                           logInformation.Message,
                                           logInformation.Context,
                                           DateTime.UtcNow),
                    mockException,
                    (p, e) => p.Message);
        }
 public void SendNotification(IHealthNotifier healthNotifier, LogInformationDto logInformation)
 {
     healthNotifier.Notify(PrepareHealthMessage(logInformation), logInformation.Context);
 }
 private string PrepareHealthMessage(LogInformationDto source)
 {
     return(source.Message);
 }