Class UnityLogSource

Logs entries using Unity specific outputs.

Inheritance
System.Object UnityLogSource
Implements
ILogSource System.IDisposable
Inherited Members
System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx.Unity.Mono.Logging
Assembly: BepInEx.Unity.Mono.dll
Syntax
public class UnityLogSource : ILogSource, IDisposable

Constructors

UnityLogSource()

Creates a new Unity log source.

Declaration
public UnityLogSource()

Properties

SourceName

Name of the log source.

Declaration
public string SourceName { get; }
Property Value
Type Description
System.String

Methods

Dispose()

Declaration
public void Dispose()

Events

LogEvent

Event that sends the log message. Call System.EventHandler.Invoke(System.Object,System.EventArgs) to send a log message.

Declaration
public event EventHandler<LogEventArgs> LogEvent
Event Type
Type Description
System.EventHandler<LogEventArgs>

Implements

ILogSource
System.IDisposable