39 lines
872 B
C#
39 lines
872 B
C#
using System;
|
|
using Xylem.Common.Utils.Logging.EventArguments;
|
|
|
|
namespace Xylem.Common.Utils.Logging
|
|
{
|
|
/// <summary>
|
|
/// interface for common logging
|
|
/// </summary>
|
|
public interface ILoggable
|
|
{
|
|
/// <summary>
|
|
/// called when text log is done
|
|
/// </summary>
|
|
event EventHandler<LogEventArgs> Log;
|
|
|
|
/// <summary>
|
|
/// called when error log is done
|
|
/// </summary>
|
|
event EventHandler<ExceptionEventArgs> LogError;
|
|
|
|
/// <summary>
|
|
/// Log some text
|
|
/// </summary>
|
|
/// <param name="message">Text to Log</param>
|
|
void WriteToLog(String message);
|
|
/// <summary>
|
|
/// Write Log some error/exception
|
|
/// </summary>
|
|
/// <param name="exception">error to log</param>
|
|
void WriteToErrorLog(Exception exception);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|