Interface ILogger
- Namespace
- Microsoft.Extensions.Logging
- Assembly
- nanoFramework.Logging.dll
Represents a type used to perform logging.
public interface ILogger
- Extension Methods
Remarks
Aggregates most logging patterns to a single method.
Methods
IsEnabled(LogLevel)
Checks if the given logLevel
is enabled.
bool IsEnabled(LogLevel logLevel)
Parameters
logLevel
LogLevellevel to be checked.
Returns
- bool
true
if enabled.
Log(LogLevel, EventId, string, Exception, MethodInfo)
Writes a log entry.
void Log(LogLevel logLevel, EventId eventId, string state, Exception exception, MethodInfo format)
Parameters
logLevel
LogLevelEntry will be written on this level.
eventId
EventIdId of the event.
state
stringThe entry to be written.
exception
ExceptionThe exception related to this entry.
format
MethodInfo