{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct LogWriterUtils | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct LogWriterUtils

    Parser logic

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Logging
    Assembly: solution.dll
    Syntax
    [BurstCompile]
    public struct LogWriterUtils

    Methods

    Name Description
    AddDecorateHandler(LogControllerScopedLock, OutputWriterDecorateHandler, bool)

    Used by Log.To().Decorate calls to add a method that's called for every log message, and adds decorations to it for a particular logger.

    AddDecorateHandler(OutputWriterDecorateHandler, bool)

    Used by Log.Decorate calls to add a method that's called for every log message, and add decorations to it globally.

    AddOutputHandler(OutputWriterHandler, bool)

    Adds a delegate to process and generate logging output strings for a set of context structs.

    RemoveOutputHandler(IntPtr)

    Removes an LogWriterUtils.OutputWriterHandler delegate from the parser.

    SetOutputHandlerForLevel(OutputWriterLevelHandler, bool)

    Sets a delegate to process and generate logging output strings for LogLevel.

    SetOutputHandlerForTimestamp(OutputWriterTimestampHandler, bool)

    Sets a delegate to process and generate logging output strings for timestamps.

    WriteFormattedContextData(ref FormatterStruct, in PayloadHandle, ref UnsafeText, ref FixedString512Bytes, ref LogMemoryManager, ref ArgumentInfo)

    Appends string representation of a binary data in the payload

    WriteFormattedLevel(LogLevel, ref UnsafeText)

    Appends string representation of LogLevel into UnsafeText

    WriteFormattedTimestamp(in long, ref UnsafeText)

    Writes Timestamp to the UnsafeText as UTC

    WriteFormattedTimestampLocalTimeZone(in long, ref UnsafeText)

    Writes Timestamp to the UnsafeText in Local time zone

    WriteFormattedTimestampLocalTimeZoneForConsole(in long, ref UnsafeText)

    Writes Timestamp to the UnsafeText in Local time zone to show in the Console Window in the Editor (HH:MM:SS)

    WriteNewLine(ref UnsafeText)

    Appends a new line into the UnsafeText

    WriteProperties(ref UnsafeText)

    Appends all properties into the UnsafeText. For now not implemented

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)