Пример #1
0
        static void Log(YGConfig config, YGNode node, YGLogLevel level, object context, string message)
        {
            YGConfig logConfig = config ?? YGGlobal.YGConfigGetDefault();

            logConfig.Log(logConfig, node, level, context, message);

            if (level == YGLogLevel.Fatal)
            {
                Environment.FailFast("Fatal exception");
            }
        }
Пример #2
0
 public void Log(YGConfig config, YGNode node, YGLogLevel level, string message)
 {
     LoggerFunc(config, node, level, Context, message);
 }
Пример #3
0
 public YGConfig(YGConfig config)
 {
     CloneNodeFunc = config.CloneNodeFunc;
     LoggerFunc    = config.LoggerFunc;
 }
Пример #4
0
 public NodeDeallocationEventArgs(YGNode node, YGConfig config) : base(node)
 {
     Config = config;
 }
Пример #5
0
 public static void Log(YGConfig config, YGLogLevel level, object context, string message)
 {
     Log(config, null, level, context, message);
 }