#region "SoapBox.Core License"
/// <header module="SoapBox.Core">
/// Copyright (C) 2009 SoapBox Automation Inc., All Rights Reserved.
/// Contact: SoapBox Automation Licencing (license@soapboxautomation.com)
///
/// This file is part of SoapBox Core.
///
/// Commercial Usage
/// Licensees holding valid SoapBox Automation Commercial licenses may use
/// this file in accordance with the SoapBox Automation Commercial License
/// Agreement provided with the Software or, alternatively, in accordance
/// with the terms contained in a written agreement between you and
/// SoapBox Automation Inc.
///
/// GNU Lesser General Public License Usage
/// SoapBox Core is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Lesser General Public License
/// as published by the Free Software Foundation, either version 3 of the
/// License, or (at your option) any later version.
///
/// SoapBox Core is distributed in the hope that it will be useful,
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
/// GNU Lesser General Public License for more details.
///
/// You should have received a copy of the GNU Lesser General Public License
/// along with SoapBox Core. If not, see <http://www.gnu.org/licenses/>.
/// </header>
#endregion
/// This is based directly on the NLog Logger object's methods.
/// It's also very easy to adapt log4net to use this interface,
/// which is why I chose it.
using System;
namespace SoapBox.Core
{
public interface ILoggingService
{
void Debug(object message);
void DebugWithFormat(string format, params object[] args);
void Info(object message);
void InfoWithFormat(string format, params object[] args);
void Warn(object message);
void Warn(object message, Exception exception);
void WarnWithFormat(string format, params object[] args);
void Error(object message);
void Error(object message, Exception exception);
void ErrorWithFormat(string format, params object[] args);
void Fatal(object message);
void Fatal(object message, Exception exception);
void FatalWithFormat(string format, params object[] args);
bool IsDebugEnabled { get; }
bool IsInfoEnabled { get; }
bool IsWarnEnabled { get; }
bool IsErrorEnabled { get; }
bool IsFatalEnabled { get; }
}
}