logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecordingLogService

    ILogService implementation that records warning and error messages for assertions.

    Inheritance
    object
    RecordingLogService
    Implements
    ILogService
    IService
    IFoundationSettings
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Tests.Shared.Fakes
    Assembly: Tests.dll
    Syntax
    public class RecordingLogService : ILogService, IService, IFoundationSettings

    Constructors

    RecordingLogService()

    Declaration
    public RecordingLogService()

    Properties

    ErrorCategories

    Declaration
    public List<string> ErrorCategories { get; }
    Property Value
    Type Description
    List<string>

    ErrorMessages

    Declaration
    public List<string> ErrorMessages { get; }
    Property Value
    Type Description
    List<string>

    Guid

    Declaration
    public string Guid { get; set; }
    Property Value
    Type Description
    string

    Id

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    InformationCategories

    Declaration
    public List<string> InformationCategories { get; }
    Property Value
    Type Description
    List<string>

    InformationMessages

    Declaration
    public List<string> InformationMessages { get; }
    Property Value
    Type Description
    List<string>

    LogService

    Declaration
    public ILogService LogService { get; set; }
    Property Value
    Type Description
    ILogService

    Verbosity

    Declaration
    public LogVerbosity Verbosity { get; set; }
    Property Value
    Type Description
    LogVerbosity

    WarningCategories

    Declaration
    public List<string> WarningCategories { get; }
    Property Value
    Type Description
    List<string>

    WarningMessages

    Declaration
    public List<string> WarningMessages { get; }
    Property Value
    Type Description
    List<string>

    Methods

    ClearCategoryVerbosity(string)

    Declaration
    public void ClearCategoryVerbosity(string category)
    Parameters
    Type Name Description
    string category

    For(string)

    Declaration
    public ILoggerComponent For(string category)
    Parameters
    Type Name Description
    string category
    Returns
    Type Description
    ILoggerComponent

    GetEffectiveVerbosity(string)

    Declaration
    public LogVerbosity GetEffectiveVerbosity(string category)
    Parameters
    Type Name Description
    string category
    Returns
    Type Description
    LogVerbosity

    IsEnabledFor(string, LogSeverity)

    Declaration
    public bool IsEnabledFor(string category, LogSeverity severity)
    Parameters
    Type Name Description
    string category
    LogSeverity severity
    Returns
    Type Description
    bool

    SetCategoryVerbosity(string, LogVerbosity?)

    Declaration
    public void SetCategoryVerbosity(string category, LogVerbosity? verbosity)
    Parameters
    Type Name Description
    string category
    LogVerbosity? verbosity

    WriteErrorLog(string, string, params string[])

    Declaration
    public void WriteErrorLog(string message, string category = null, params string[] tags)
    Parameters
    Type Name Description
    string message
    string category
    string[] tags

    WriteExceptionLog(Exception, string, string, params string[])

    Declaration
    public void WriteExceptionLog(Exception exception, string message = null, string category = null, params string[] tags)
    Parameters
    Type Name Description
    Exception exception
    string message
    string category
    string[] tags

    WriteInformationLog(string, string, params string[])

    Declaration
    public void WriteInformationLog(string message, string category = null, params string[] tags)
    Parameters
    Type Name Description
    string message
    string category
    string[] tags

    WriteLog(LogEntry)

    Declaration
    public void WriteLog(LogEntry entry)
    Parameters
    Type Name Description
    LogEntry entry

    WriteVerboseLog(string, string, params string[])

    Declaration
    public void WriteVerboseLog(string message, string category = null, params string[] tags)
    Parameters
    Type Name Description
    string message
    string category
    string[] tags

    WriteWarningLog(string, string, params string[])

    Declaration
    public void WriteWarningLog(string message, string category = null, params string[] tags)
    Parameters
    Type Name Description
    string message
    string category
    string[] tags

    Implements

    ILogService
    IService
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved