common/Utils/Logging/ILoggable.cs
2026-04-23 17:50:07 +02:00

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);
}
}