Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    LoggerResult Class

    Namespace: Stride.Core.Diagnostics
    Assembly: Stride.Core.dll

    A logger that stores messages locally useful for internal log scenarios.

    System.Object → Logger → LoggerResult
    Derived from LoggerResult: AssetCompilerResult PackageSessionResult ForwardingLoggerResult LoggerValueResult<T> MaterialShaderResult CompilerResults

    public class LoggerResult : Logger, ILogger, IProgressStatus
    Name Description
    Constructors
    LoggerResult(String)

    Initializes a new instance of the LoggerResult class.

    Properties
    IsLoggingProgressAsInfo

    Gets or sets a value indicating whether this instance is logging progress as information. Default is true.

    Messages

    Gets the messages logged to this instance.

    Module

    Gets the module name. read-write.

    Methods
    Clear()

    Clears all messages.

    CopyTo(ILogger)

    Copies all messages to another instance.

    LogRaw(ILogMessage)
    Progress(String)

    Notifies progress on this instance.

    Progress(String, Int32, Int32)

    Notifies progress on this instance.

    ToText()

    Returns a string representation of this

    Events
    ProgressChanged

    Occurs when the progress changed for this logger.

    Explicit Interface Implementations
    IProgressStatus.OnProgressChanged(ProgressStatusEventArgs)
    | Improve this Doc View Source

    Constructors


    LoggerResult(String)

    Initializes a new instance of the LoggerResult class.

    public LoggerResult(string moduleName = null)
    Parameters
    Type Name Description
    System.String moduleName
    | Improve this Doc View Source

    Properties


    IsLoggingProgressAsInfo

    Gets or sets a value indicating whether this instance is logging progress as information. Default is true.

    public bool IsLoggingProgressAsInfo { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is logging progress as information; otherwise, false.


    Messages

    Gets the messages logged to this instance.

    public TrackingCollection<ILogMessage> Messages { get; }
    Property Value
    Type Description
    TrackingCollection<ILogMessage>

    The messages.


    Module

    Gets the module name. read-write.

    public string Module { get; set; }
    Property Value
    Type Description
    System.String

    The module name.

    | Improve this Doc View Source

    Methods


    Clear()

    Clears all messages.

    public virtual void Clear()

    CopyTo(ILogger)

    Copies all messages to another instance.

    public void CopyTo(ILogger results)
    Parameters
    Type Name Description
    ILogger results

    The results.


    LogRaw(ILogMessage)

    protected override void LogRaw(ILogMessage logMessage)
    Parameters
    Type Name Description
    ILogMessage logMessage
    Overrides
    Logger.LogRaw(ILogMessage)

    Progress(String)

    Notifies progress on this instance.

    public void Progress(string message)
    Parameters
    Type Name Description
    System.String message

    The message.


    Progress(String, Int32, Int32)

    Notifies progress on this instance.

    public void Progress(string message, int currentStep, int stepCount)
    Parameters
    Type Name Description
    System.String message

    The message.

    System.Int32 currentStep

    The current step.

    System.Int32 stepCount

    The step count.


    ToText()

    Returns a string representation of this

    public string ToText()
    Returns
    Type Description
    System.String

    System.String.

    | Improve this Doc View Source

    Events


    ProgressChanged

    Occurs when the progress changed for this logger.

    public event EventHandler<ProgressStatusEventArgs> ProgressChanged
    Event Type
    Type Description
    System.EventHandler<ProgressStatusEventArgs>
    | Improve this Doc View Source

    Explicit Interface Implementations


    IProgressStatus.OnProgressChanged(ProgressStatusEventArgs)

    void IProgressStatus.OnProgressChanged(ProgressStatusEventArgs e)
    Parameters
    Type Name Description
    ProgressStatusEventArgs e

    Inherited Members

    Logger.EnableTypes
    Logger.MessageLogged
    Logger.MinimumLevelEnabled
    Logger.IsDebugEnabled
    Logger.IsVerboseEnabled
    Logger.HasErrors
    Logger.ActivateLog(LogMessageType, LogMessageType, Boolean)
    Logger.ActivateLog(LogMessageType, Boolean)
    Logger.Activated(LogMessageType)
    Logger.Log(ILogMessage)
    Logger.Verbose(String, Exception, CallerInfo)
    Logger.Verbose(String, CallerInfo)
    Logger.Debug(String, Exception, CallerInfo)
    Logger.Debug(String, CallerInfo)
    Logger.Info(String, Exception, CallerInfo)
    Logger.Info(String, CallerInfo)
    Logger.Warning(String, Exception, CallerInfo)
    Logger.Warning(String, CallerInfo)
    Logger.Error(String, Exception, CallerInfo)
    Logger.Error(String, CallerInfo)
    Logger.Fatal(String, Exception, CallerInfo)
    Logger.Fatal(String, CallerInfo)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    LoggerExtensions.Verbose(ILogger, String, Exception, CallerInfo)
    LoggerExtensions.Verbose(ILogger, String, CallerInfo)
    LoggerExtensions.Debug(ILogger, String, Exception, CallerInfo)
    LoggerExtensions.Debug(ILogger, String, CallerInfo)
    LoggerExtensions.Info(ILogger, String, Exception, CallerInfo)
    LoggerExtensions.Info(ILogger, String, CallerInfo)
    LoggerExtensions.Warning(ILogger, String, Exception, CallerInfo)
    LoggerExtensions.Warning(ILogger, String, CallerInfo)
    LoggerExtensions.Error(ILogger, String, Exception, CallerInfo)
    LoggerExtensions.Error(ILogger, String, CallerInfo)
    LoggerExtensions.Fatal(ILogger, String, Exception, CallerInfo)
    LoggerExtensions.Fatal(ILogger, String, CallerInfo)
    AssetLoggerExtensions.Error(ILogger, Package, IReference, AssetMessageCode, Object[])
    AssetLoggerExtensions.Error(ILogger, Package, IReference, AssetMessageCode, IEnumerable<IReference>, Object[])
    AssetLoggerExtensions.Error(ILogger, Package, IReference, AssetMessageCode, IReference[], Exception)
    AssetLoggerExtensions.Error(ILogger, Package, IReference, AssetMessageCode, IEnumerable<IReference>, Exception)
    AssetLoggerExtensions.Error(ILogger, Package, IReference, AssetMessageCode, Exception, Object[])
    AssetLoggerExtensions.Error(ILogger, Package, IReference, AssetMessageCode, IEnumerable<IReference>, Exception, Object[])
    AssetLoggerExtensions.Warning(ILogger, Package, IReference, AssetMessageCode, IReference[])
    AssetLoggerExtensions.Warning(ILogger, Package, IReference, AssetMessageCode, IEnumerable<IReference>)
    AssetLoggerExtensions.Warning(ILogger, Package, IReference, AssetMessageCode, Object[])
    AssetLoggerExtensions.Warning(ILogger, Package, IReference, AssetMessageCode, IEnumerable<IReference>, Object[])
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation