Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (30 sloc) 1.211 kb
using System;
using System.Threading.Tasks;
namespace MetroLog
{
public interface ILogger
{
string Name { get; }
bool IsTraceEnabled { get; }
bool IsDebugEnabled { get; }
bool IsInfoEnabled { get; }
bool IsWarnEnabled { get; }
bool IsErrorEnabled { get; }
bool IsFatalEnabled { get; }
void Trace(string message, Exception ex = null);
void Trace(string message, params object[] ps);
void Debug(string message, Exception ex = null);
void Debug(string message, params object[] ps);
void Info(string message, Exception ex = null);
void Info(string message, params object[] ps);
void Warn(string message, Exception ex = null);
void Warn(string message, params object[] ps);
void Error(string message, Exception ex = null);
void Error(string message, params object[] ps);
void Fatal(string message, Exception ex = null);
void Fatal(string message, params object[] ps);
void Log(LogLevel logLevel, string message, Exception ex);
void Log(LogLevel logLevel, string message, params object[] ps);
bool IsEnabled(LogLevel level);
}
}
Jump to Line
Something went wrong with that request. Please try again.