public static void LogCompilerErrors(this IHxlcLogger log, HxlCompilerErrorCollection errors) { foreach (var e in errors) { var str = e.ToString(); if (e.IsWarning) { log.Warn(str); } else { log.Error(str); } } }
public HxlcApp(ProgramOptions options) { Options = options; _logger = new HxlcLogger(Options.TraceLevel); }
public static void ParsingTemplate(this IHxlcLogger log, string file) { log.DebugFormat(file); }
public static void SavedOutputFile(this IHxlcLogger log, string outputFile) { log.TraceFormat("Saved output file to: {0}", outputFile); }
public static void SavedGeneratedSourceFile(this IHxlcLogger log, string outputFile) { log.Trace(outputFile); }
public static void NoSourceFilesSpecified(this IHxlcLogger log) { log.Error("No source files specified."); }
public static void FailedToLoadAssemblyReference(this IHxlcLogger log, string reference, Exception ex) { log.ErrorFormat("Compilation may fail - Failed to load an assembly: {0}", reference); log.Debug(ex); }