Ejemplo n.º 1
0
            public override void notify(NotifySeverity severity, string message)
            {
                switch (severity)
                {
                case NotifySeverity.FATAL:
                    Debug.WriteLine("FATAL: " + message);
                    return;

                case NotifySeverity.WARN:
                    Debug.WriteLine("WARN: " + message);
                    return;

                case NotifySeverity.INFO:
                    Debug.WriteLine("INFO: " + message);
                    return;

                case NotifySeverity.NOTICE:
                    Debug.WriteLine("NOTICE: " + message);
                    return;

                case NotifySeverity.DEBUG_FP:
                    Debug.WriteLine("DEBUG_FP: " + message);
                    return;

                case NotifySeverity.DEBUG_INFO:
                    Debug.WriteLine("DEBUG_INFO: " + message);
                    return;

                case NotifySeverity.ALWAYS:
                    Debug.WriteLine("ALWAYS: " + message);
                    return;
                }
            }
Ejemplo n.º 2
0
            public override void notify(NotifySeverity severity, string message)
            {
                switch (severity)
                {
                case NotifySeverity.FATAL:
                    Log <LogHelper> .Fatal(message);

                    return;

                case NotifySeverity.WARN:
                    Log <LogHelper> .Warn(message);

                    return;

                case NotifySeverity.INFO:
                    Log <LogHelper> .Info(message);

                    return;

                case NotifySeverity.NOTICE:
                    Log <LogHelper> .Info(message);

                    return;

                case NotifySeverity.DEBUG_FP:
                    Log <LogHelper> .Debug(message);

                    return;

                case NotifySeverity.DEBUG_INFO:
                    Log <LogHelper> .Debug(message);

                    return;

                case NotifySeverity.ALWAYS:
                    Log <LogHelper> .Info(message);

                    return;
                }
            }