Table of Contents

Class BaseMonitor

Namespace
Shift.Common
Assembly
Shift.Common.dll
public abstract class BaseMonitor : IMonitor
Inheritance
BaseMonitor
Implements
Inherited Members
Extension Methods

Constructors

BaseMonitor(ILog, MonitoringSettings)

protected BaseMonitor(ILog log, MonitoringSettings settings)

Parameters

log ILog
settings MonitoringSettings

Fields

Settings

protected readonly MonitoringSettings Settings

Field Value

MonitoringSettings

Properties

Log

public ILog Log { get; }

Property Value

ILog

Methods

CreateSentryEventUri(Uri, string, string)

Creates URI directly to the event detail page

public Uri CreateSentryEventUri(Uri baseUri, string projectId, string eventId)

Parameters

baseUri Uri

URL for your Sentry organization account

projectId string

Your Sentry project slug

eventId string

The 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

message string
args object[]

Returns

Uri

Debug(string, params object[])

public Uri Debug(string message, params object[] args)

Parameters

message string
args object[]

Returns

Uri

Error(Exception)

public Uri Error(Exception exception)

Parameters

exception Exception

Returns

Uri

Error(string, params object[])

public Uri Error(string message, params object[] args)

Parameters

message string
args object[]

Returns

Uri

ExtractSubdomain(Uri)

protected string ExtractSubdomain(Uri uri)

Parameters

uri Uri

Returns

string

Flush()

public abstract void Flush()

FlushAsync()

public abstract Task FlushAsync()

Returns

Task

Information(string, params object[])

public Uri Information(string message, params object[] args)

Parameters

message string
args object[]

Returns

Uri

OnLogException(Exception)

protected abstract Uri OnLogException(Exception exception)

Parameters

exception Exception

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

message string
args object[]
level BaseMonitor.LogLevel

Returns

Uri

RemoveSubdomain(Uri)

protected Uri RemoveSubdomain(Uri uri)

Parameters

uri Uri

Returns

Uri

Trace(string, params object[])

public Uri Trace(string message, params object[] args)

Parameters

message string
args object[]

Returns

Uri

Warning(string, params object[])

public Uri Warning(string message, params object[] args)

Parameters

message string
args object[]

Returns

Uri