Restore SEBPatch
This commit is contained in:
39
SafeExamBrowser.Logging.Contracts/ILogMessage.cs
Normal file
39
SafeExamBrowser.Logging.Contracts/ILogMessage.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* 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
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines a typical (i.e. prioritized and timestamped) log message as content element of the application log.
|
||||
/// </summary>
|
||||
public interface ILogMessage : ILogContent
|
||||
{
|
||||
/// <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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user