logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityStructuredLogServiceFactory

    Unity-specific factory for creating structured logging service instances.
    Creates UnityStructuredLogService as a MonoBehaviour via GameObject.AddComponent, initialized with the resolved structured store and retention configuration. Implements ILogServiceFactory for dependency injection compatibility within the logging service architecture.

    Inheritance
    object
    UnityStructuredLogServiceFactory
    Implements
    ILogServiceFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.StructuredLogging.Infrastructure.Services.Factories
    Assembly: Serenity.UnityStructuredLogging.Infrastructure.dll
    Syntax
    public class UnityStructuredLogServiceFactory : ILogServiceFactory

    Constructors

    UnityStructuredLogServiceFactory()

    Declaration
    public UnityStructuredLogServiceFactory()

    Methods

    CreateService(CreateLogServiceDTO)

    Creates a Unity structured logging service with its store and retention dependencies.
    Creates a GameObject, attaches UnityStructuredLogService as a MonoBehaviour component, and initializes it with the provided DTO.

    Declaration
    public ILogService CreateService(CreateLogServiceDTO input)
    Parameters
    Type Name Description
    CreateLogServiceDTO input

    CreateLogServiceDTO containing the structured store and retention dependencies.

    Returns
    Type Description
    ILogService

    Configured Unity structured logging service instance.

    Implements

    ILogServiceFactory
    In this article
    © 2026 Serenity. All Rights Reserved