microsoft/TypeAgent
Publicmirrored fromhttps://github.com/microsoft/TypeAgentAvailable
dotnet/autoShell/Logging/ILogger.cs
36lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System; |
| 5 | |
| 6 | namespace autoShell.Logging; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Provides logging methods for error, warning, info, and debug messages. |
| 10 | /// </summary> |
| 11 | internal 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 | |