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; } }
public void Log(LazynetLogLevel level, string name, string content) { string tmp = string.Format("{0} {1}", name, content); this.Log(level, tmp); }