microsoft/TypeAgent

Public

mirrored fromhttps://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/collate-todos-into-todo-md

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

dotnet/autoShell/Logging/ILogger.cs

36lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4using System;
5
6namespace autoShell.Logging;
7
8/// <summary>
9/// Provides logging methods for error, warning, info, and debug messages.
10/// </summary>
11internal interface ILogger
12{
13 /// <summary>
14 /// Logs an exception as an error.
15 /// </summary>
16 /// <param name="ex">The exception to log.</param>
17 void Error(Exception ex);
18
19 /// <summary>
20 /// Logs a warning message.
21 /// </summary>
22 /// <param name="message">The warning message.</param>
23 void Warning(string message);
24
25 /// <summary>
26 /// Logs an informational message visible to the user.
27 /// </summary>
28 /// <param name="message">The info message.</param>
29 void Info(string message);
30
31 /// <summary>
32 /// Logs a debug-level message.
33 /// </summary>
34 /// <param name="message">The debug message.</param>
35 void Debug(string message);
36}
37