seb-win-refactoring/SafeExamBrowser.Logging.Contracts/ILogMessage.cs

40 lines
987 B
C#
Raw Normal View History

2017-07-05 11:41:19 +02:00
/*
* Copyright (c) 2024 ETH Zürich, IT Services
2017-07-05 11:41:19 +02:00
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
using SafeExamBrowser.Settings.Logging;
namespace SafeExamBrowser.Logging.Contracts
2017-07-05 11:41:19 +02:00
{
/// <summary>
/// Defines a typical (i.e. prioritized and timestamped) log message as content element of the application log.
/// </summary>
public interface ILogMessage : ILogContent
2017-07-05 11:41:19 +02:00
{
/// <summary>
/// The date when the message was logged.
/// </summary>
DateTime DateTime { get; }
/// <summary>
/// The severity of the message.
/// </summary>
LogLevel Severity { get; }
/// <summary>
/// The message itself.
/// </summary>
string Message { get; }
/// <summary>
/// Information about the thread on which the message was logged.
/// </summary>
IThreadInfo ThreadInfo { get; }
2017-07-05 11:41:19 +02:00
}
}