RollingInMemoryLogService

Name Value
Assembly Catel.Core
Namespace Catel.Services
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public class RollingInMemoryLogService : IRollingInMemoryLogService, ServiceBase

Base types ServiceBase

Implements interfaces IRollingInMemoryLogService

Rolling in memory log service.

Fields

Constructors

RollingInMemoryLogService()

Initializes a new instance of the RollingInMemoryLogService class.

RollingInMemoryLogService(RollingInMemoryLogListener logListener)

Initializes a new instance of the RollingInMemoryLogService class.

Parameters

Name Description
logListener The log listener. Ifnull, this service will create its own log listener.

Properties

LogListener

Gets the log listener.

MaximumNumberOfErrorLogEntries

Gets or sets the maximum number of error log entries to keep. The default value is 50.

MaximumNumberOfLogEntries

Gets or sets the maximum number of log entries to keep. The default value is 250.

MaximumNumberOfWarningLogEntries

Gets or sets the maximum number of warning log entries to keep. The default value is 50.

Events

LogMessage

Occurs when a log message is written.

Methods

GetErrorLogEntries()

Gets the error log entries.

Returns

IEnumerable<LogEntry>.

GetLogEntries()

Gets the log entries.

Returns

IEnumerable<LogEntry>.

GetWarningLogEntries()

Gets the warning log entries.

Returns

IEnumerable<LogEntry>.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion