Beispiel #1
0
 public override string ToString()
 {
     return(String.Format("{0} - {1} - {2}", LogDateTime.ToString("yyyyMMdd - HHmmss"), LogLevel, Message));
 }
Beispiel #2
0
        public override string ToString()
        {
            var time = LogDateTime.ToString(new CultureInfo("uk-UA")) + ", " + LogDateTime.Kind;

            return(string.Format($"====\nDate: {time}; \nLogLevel: {Level.ToString()}; \nMessage: {Message}.\n===="));
        }