logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLogSettings

    Abstract base class for Unity-based logging configuration settings that implements ILogSettings and IFoundationSettings.
    Provides ScriptableObject-based configuration for logging verbosity, formatting options, per-category overrides, and the identity fields shared by every concrete log settings asset (console, file, structured).

    Inheritance
    object
    UnityLogSettings
    UnityConsoleLogSettings
    Implements
    ILogSettings
    IFoundationSettings
    Namespace: Serenity.Logging.Infrastructure.Settings
    Assembly: Serenity.UnityGlobal.Infrastructure.dll
    Syntax
    public abstract class UnityLogSettings : ScriptableObject, ILogSettings, IFoundationSettings

    Constructors

    UnityLogSettings()

    Declaration
    protected UnityLogSettings()

    Fields

    Guid

    Declaration
    public string Guid
    Field Value
    Type Description
    string

    GUID for this settings asset.

    Id

    Declaration
    public string Id
    Field Value
    Type Description
    string

    Unique identifier for this settings asset.

    ShowCategory

    Declaration
    public bool ShowCategory
    Field Value
    Type Description
    bool

    Whether to include the log category in message formatting.

    ShowTimestamps

    Declaration
    public bool ShowTimestamps
    Field Value
    Type Description
    bool

    Whether to include timestamps in log message formatting.

    UseRichText

    Declaration
    public bool UseRichText
    Field Value
    Type Description
    bool

    Whether to use Unity's rich text formatting in log messages.

    Verbosity

    Declaration
    public LogVerbosity Verbosity
    Field Value
    Type Description
    LogVerbosity

    The global logging verbosity level that determines which log messages are displayed.

    overrides

    Declaration
    public LogCategoryVerbosityOverride[] overrides
    Field Value
    Type Description
    LogCategoryVerbosityOverride[]

    Array of category-specific verbosity overrides that allow fine-grained control over logging per service or component.

    Properties

    CategoryVerbosity

    Gets the array of category-specific verbosity overrides converted to domain objects.
    Returns an empty array if no overrides are configured, otherwise converts each override to its domain representation.

    Declaration
    public LogCategoryVerbosity[] CategoryVerbosity { get; }
    Property Value
    Type Description
    LogCategoryVerbosity[]

    Array of LogCategoryVerbosity value objects representing the overrides

    Implements

    ILogSettings
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved