{!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 FormatterStruct | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct FormatterStruct

    Interface that describes how to convert some object context into string

    Implements
    IFormatter
    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
    public struct FormatterStruct : IFormatter

    Fields

    Name Description
    OnFormatMessage

    Converts a LogMessage into UnsafeText

    UseTextBlittable

    It is a JSON formatter if 1, text if 0

    Properties

    Name Description
    IsCreated

    True if the structure was initialized

    UseText

    Checks if this is a JSON or text formatter

    Methods

    Name Description
    AfterObject(ref UnsafeText)

    Object ends. Should be called after BeforeObject(ref UnsafeText)

    AppendDelimiter(ref UnsafeText)

    Append a delimiter if any between properties / objects

    BeforeObject(ref UnsafeText)

    Object begins. Should be called before AfterObject(ref UnsafeText)

    BeginProperty(ref UnsafeText, string)

    Property starts. Should be called before EndProperty(ref UnsafeText, string)

    BeginProperty<T>(ref UnsafeText, ref T)

    Property starts. Should be called before EndProperty(ref UnsafeText, string)

    EndProperty(ref UnsafeText, string)

    Property ends. Should be called after BeginProperty(ref UnsafeText, string)

    EndProperty<T>(ref UnsafeText, ref T)

    Property ends. Should be called after BeginProperty(ref UnsafeText, string)

    WriteChild<T>(ref UnsafeText, string, ref T, ref LogMemoryManager, ref ArgumentInfo, int)

    Writes a child mirror struct as a property

    WriteProperty(ref UnsafeText, string, bool, ref ArgumentInfo)

    Writes bool as a property

    WriteProperty(ref UnsafeText, string, byte, ref ArgumentInfo)

    Writes byte as a property

    WriteProperty(ref UnsafeText, string, char, ref ArgumentInfo)

    Writes char as a property

    WriteProperty(ref UnsafeText, string, decimal, ref ArgumentInfo)

    Writes decimal as a property

    WriteProperty(ref UnsafeText, string, double, ref ArgumentInfo)

    Writes double as a property

    WriteProperty(ref UnsafeText, string, short, ref ArgumentInfo)

    Writes short as a property

    WriteProperty(ref UnsafeText, string, int, ref ArgumentInfo)

    Writes int as a property

    WriteProperty(ref UnsafeText, string, long, ref ArgumentInfo)

    Writes long as a property

    WriteProperty(ref UnsafeText, string, IntPtr, ref ArgumentInfo)

    Writes IntPtr as a property

    WriteProperty(ref UnsafeText, string, sbyte, ref ArgumentInfo)

    Writes sbyte as a property

    WriteProperty(ref UnsafeText, string, float, ref ArgumentInfo)

    Writes float as a property

    WriteProperty(ref UnsafeText, string, ushort, ref ArgumentInfo)

    Writes ushort as a property

    WriteProperty(ref UnsafeText, string, uint, ref ArgumentInfo)

    Writes uint as a property

    WriteProperty(ref UnsafeText, string, ulong, ref ArgumentInfo)

    Writes ulong as a property

    WriteProperty(ref UnsafeText, string, UIntPtr, ref ArgumentInfo)

    Writes UIntPtr as a property

    WriteProperty(ref UnsafeText, string, PayloadHandle, ref LogMemoryManager, ref ArgumentInfo)

    Writes UTF8 string in PayloadHandle as a property

    WriteProperty<T>(ref UnsafeText, string, in T, ref ArgumentInfo)

    Writes UTF8 string as a property

    WriteUTF8String(ref UnsafeText, byte*, int, ref ArgumentInfo)

    Writes a UTF8 string

    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)