4 using Vintagestory.API.Common;
6 namespace ShardProcessor
8 public class LogAdaptor : LoggerBase
10 private StreamWriter fileOutput;
14 fileOutput = File.CreateText("SP_Log.txt");
15 fileOutput.AutoFlush = true;
18 protected override void LogImpl(EnumLogType logType, string format, params object[ ] args)
20 string formatedText = null;
21 if (args != null && args.Length > 0) {
22 formatedText = string.Format(format, args);
24 else { formatedText = format; }
26 fileOutput.WriteLine($"«{logType}» {formatedText}");