Ver código fonte

Make TraceLogSource log correctly

Bepis 5 anos atrás
pai
commit
bdea7802f6
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      BepInEx/Logging/TraceLogSource.cs

+ 4 - 4
BepInEx/Logging/TraceLogSource.cs

@@ -38,7 +38,7 @@ namespace BepInEx.Logging
 		/// <param name="message">The message to write.</param>
 		public override void Write(string message)
 		{
-			LogSource.Log(LogLevel.None, message);
+			LogSource.LogInfo(message);
 		}
 
 		/// <summary>
@@ -47,7 +47,7 @@ namespace BepInEx.Logging
 		/// <param name="message">The message to write.</param>
 		public override void WriteLine(string message)
 		{
-			LogSource.Log(LogLevel.None, $"{message}\r\n");
+			LogSource.LogInfo(message);
 		}
 
 		public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string format, params object[] args)
@@ -76,8 +76,8 @@ namespace BepInEx.Logging
 					level = LogLevel.Debug;
 					break;
 			}
-
-			LogSource.Log(level, $"{source} : {message}");
+			
+			LogSource.Log(level, $"{message}".Trim());
 		}
 	}
 }