Class BaseMonitor
public abstract class BaseMonitor : IMonitor
- Inheritance
-
BaseMonitor
- Implements
- Inherited Members
- Extension Methods
Constructors
BaseMonitor(ILog, MonitoringSettings)
protected BaseMonitor(ILog log, MonitoringSettings settings)
Parameters
logILogsettingsMonitoringSettings
Fields
Settings
protected readonly MonitoringSettings Settings
Field Value
Properties
Log
public ILog Log { get; }
Property Value
Methods
CreateSentryEventUri(Uri, string, string)
Creates URI directly to the event detail page
public Uri CreateSentryEventUri(Uri baseUri, string projectId, string eventId)
Parameters
baseUriUriURL for your Sentry organization account
projectIdstringYour Sentry project slug
eventIdstringThe event ID returned from SentrySdk.CaptureMessage
Returns
- Uri
Complete URI to the specific Sentry event
Critical(string, params object[])
public Uri Critical(string message, params object[] args)
Parameters
Returns
- Uri
Debug(string, params object[])
public Uri Debug(string message, params object[] args)
Parameters
Returns
- Uri
Error(Exception)
public Uri Error(Exception exception)
Parameters
exceptionException
Returns
- Uri
Error(string, params object[])
public Uri Error(string message, params object[] args)
Parameters
Returns
- Uri
ExtractSubdomain(Uri)
protected string ExtractSubdomain(Uri uri)
Parameters
uriUri
Returns
Flush()
public abstract void Flush()
FlushAsync()
public abstract Task FlushAsync()
Returns
Information(string, params object[])
public Uri Information(string message, params object[] args)
Parameters
Returns
- Uri
OnLogException(Exception)
protected abstract Uri OnLogException(Exception exception)
Parameters
exceptionException
Returns
- Uri
OnLogMessage(string, object[], LogLevel)
Override this method to implement custom logging behavior (e.g., sending to Sentry)
protected abstract Uri OnLogMessage(string message, object[] args, BaseMonitor.LogLevel level)
Parameters
messagestringargsobject[]levelBaseMonitor.LogLevel
Returns
- Uri
RemoveSubdomain(Uri)
protected Uri RemoveSubdomain(Uri uri)
Parameters
uriUri
Returns
- Uri
Trace(string, params object[])
public Uri Trace(string message, params object[] args)
Parameters
Returns
- Uri
Warning(string, params object[])
public Uri Warning(string message, params object[] args)
Parameters
Returns
- Uri