Skip to main content

Class CloudLogger

Meadow.Cloud logging

Assembly: Meadow.LogProviders.dll​
View Source​
Declaration
public class CloudLogger : ILogProvider

Implements:
Meadow.Logging.ILogProvider

Properties​

MinLevel​

Current minimum level for the CloudLogger

View Source​
Declaration
public LogLevel MinLevel { get; protected set; }

Methods​

Log(LogLevel, string, string?)​

Called when the associated Logger has a message call

View Source​
Declaration
public void Log(LogLevel level, string message, string? _)
Parameters​
TypeNameDescription
Meadow.Logging.LogLevellevelThe LogLevel for the message
System.StringmessageThe message to log
System.String_

LogException(Exception)​

Log an exception.

View Source​
Declaration
public void LogException(Exception ex)
Parameters​
TypeName
System.Exceptionex

LogEvent(int, string, Dictionary<string, object>)​

Log an event.

View Source​
Declaration
public void LogEvent(int eventId, string description, Dictionary<string, object> measurements)
Parameters​
TypeNameDescription
System.Int32eventIdid used for a set of events.
System.StringdescriptionDescription of the event.
System.Collections.Generic.Dictionary<System.String,System.Object>measurementsDynamic payload of measurements to be recorded.

Implements​