forked from smartstore/SmartStoreNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathILogger.cs
More file actions
26 lines (24 loc) · 1 KB
/
Copy pathILogger.cs
File metadata and controls
26 lines (24 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
namespace SmartStore.Core.Logging
{
/// <summary>
/// Interface that all loggers implement
/// </summary>
public partial interface ILogger
{
/// <summary>
/// Checks if this logger is enabled for a given <see cref="LogLevel"/> passed as parameter.
/// </summary>
/// <param name="level">true if this logger is enabled for level, otherwise false</param>
/// <returns>Result</returns>
bool IsEnabledFor(LogLevel level);
/// <summary>
/// Generates a logging event for the specified level using the message and exception
/// </summary>
/// <param name="logLevel">The level of the message to be logged</param>
/// <param name="exception">The exception to log, including its stack trace. Pass null to not log an exception</param>
/// <param name="message">The message object to log</param>
/// <param name="args">An Object array containing zero or more objects to format. Can be null.</param>
void Log(LogLevel level, Exception exception, string message, object[] args);
}
}