public void Log(string message, FormulaCompilerBuildInfoLevels type) { if ((Level & type) == type) { LogInternal(message, type); } }
private void LogInternal(string message, FormulaCompilerBuildInfoLevels level) { var buildInfoItem = new BuildInfoItem(message, level); All.Add(buildInfoItem); if (DebugTrace) { Debug.WriteLine(buildInfoItem); } }
public BuildInfoItem(string message, FormulaCompilerBuildInfoLevels type) { Message = message; Type = type; }
public FormulaCompiler WithInfo(FormulaCompilerBuildInfoLevels buildInfo) { BuildInfo.Level = buildInfo; return(this); }