Search Results for

    Show / Hide Table of Contents

    Class LogContext

    Log context interaction class. Methods are thread local, and as such, the context is as well. This system is used to pass down important information to be logged through large callstacks which don't have any reason to be passing down the information otherwise.

    Inheritance
    System.Object
    LogContext
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public static class LogContext : Object

    Methods

    Get()

    Gets the log context element off the top of stack.

    Declaration
    [Unmanaged]
    public static LogContextData Get()
    Returns
    LogContextData

    The log context element at the top of the stack.

    Pop()

    Pops a log context element off of the stack and discards it.

    Declaration
    [Unmanaged]
    public static void Pop()

    Print(LogType)

    Prints the current log context to the log. Does nothing it

    Declaration
    [Unmanaged]
    public static void Print(LogType verbosity)
    Parameters
    LogType verbosity

    The verbosity of the log.

    Push(Guid)

    Adds a log context element to the stack to be displayed in warning and error logs.

    Declaration
    [Unmanaged]
    public static void Push(Guid id)
    Parameters
    System.Guid id

    The ID of the object this context applies to.

    In This Article
    • Methods
      • Get()
      • Pop()
      • Print(LogType)
      • Push(Guid)
    Back to top Copyright © 2012-2024 Wojciech Figat