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

    Show / Hide Table of Contents

    Method SetOutputHandlerForLevel

    SetOutputHandlerForLevel(OutputWriterLevelHandler, bool)

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

    Declaration
    public static void SetOutputHandlerForLevel(LogWriterUtils.OutputWriterLevelHandler handler, bool isBurstable = false)
    Parameters
    Type Name Description
    LogWriterUtils.OutputWriterLevelHandler handler

    LogWriterUtils.OutputWriterLevelHandler delegate to output logging for LogLevel.

    bool isBurstable

    True to Burst compile the handler and false if it's not Burst compatible.

    Remarks

    This method is invoked by source generated code and generally shouldn't be used directly.

    Since this method takes a delegate parameter, it's not Burst compatible itself. However, the method referenced by the delegate can be Burst compatible or not, depending on how it's implemented. If the handler method is Burst compatible, then pass true for isBurstable to Burst compile the handler, otherwise the handler always runs as managed code.

    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)