日志
开启日志:
NSucceedLog.Enabled = true;
NErrorLog.Enabled = true;
NWarningLog.Enabled = true;
AssemblyCSharpBuilder builder = new .....
builder.LogCompileError().LogSyntaxError().....
NDelegate/NClass/NInterface/.... .[StaticInitMethod](
builder=>builder.LogCompileError().LogSyntaxError()
)....
关闭日志:
NSucceedLog.Enabled = false;
NErrorLog.Enabled = false;
NWarningLog.Enabled = false
编译器开启日志开关:
// AssemblyBuilder 中:
Compiler.ErrorBehavior = ExceptionBehavior.Log;
Syntax.ErrorBehavior = ExceptionBehavior.Log;