docs.unity3d.com
    Show / Hide Table of Contents

    Interface ILogger

    Namespace: Unity.Logging.Sinks
    Syntax
    public interface ILogger

    Methods

    OnLogMessage(in LogMessage, in FixedString512Bytes, ref LogMemoryManager)

    OnLogMessage is a main sink function that takes as an input LogMessage and does something with it for instance converts into a string and writes the string to the console (see ConsoleSinkSystem)

    Declaration
    void OnLogMessage(in LogMessage logEvent, in FixedString512Bytes outTemplate, ref LogMemoryManager memoryManager)
    Parameters
    Type Name Description
    LogMessage logEvent

    LogMessage that should be processed

    FixedString512Bytes outTemplate

    General template that instructs how to convert the message into string. Example: '{Timestamp} | {Level} | {Message}'

    LogMemoryManager memoryManager

    Memory manager that contains all the binary info that you can request with LogMessage struct

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023