예제 #1
0
        public void Log(LazynetLogLevel level, string content)
        {
            switch (level)
            {
            case LazynetLogLevel.Error:
                this.Logger.Error(content);
                break;

            case LazynetLogLevel.Warn:
                this.Logger.Warn(content);
                break;

            case LazynetLogLevel.Debug:
                this.Logger.Debug(content);
                break;

            case LazynetLogLevel.Info:
                this.Logger.Info(content);
                break;
            }
        }
예제 #2
0
        public void Log(LazynetLogLevel level, string name, string content)
        {
            string tmp = string.Format("{0} {1}", name, content);

            this.Log(level, tmp);
        }