docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method LogErrorFormat

    LogErrorFormat(string, params object[])

    Write an error level formatted log message.

    Declaration
    public static void LogErrorFormat(string format, params object[] args)
    Parameters
    Type Name Description
    string format

    The string with format tags.

    object[] args

    The args used to fill in the format tags.

    Remarks

    LogErrorFormat can be used to write a formatted Error level log message. LogErrorFormat supports Composite Formatting and works the same way as LogErrorFormat(string, params object[]). Addressables logs warnings and errors so by default this function will log.

    Examples
    public void UsingLogErrorFormatSample()
    {
        Addressables.LogErrorFormat("{0:o}[{1}]Unloading bundle", DateTime.Now, this.GetType().Name);
    }
    In This Article
    Back to top
    Copyright © 2025 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)