Class BepInExErrorLogInterpolatedStringHandler

Interpolated string handler for BepInEx Logger. This allows to conditionally skip logging certain messages and speed up logging in certain places.

Inheritance
System.Object BepInExLogInterpolatedStringHandler BepInExErrorLogInterpolatedStringHandler
Inherited Members
BepInExLogInterpolatedStringHandler.Enabled BepInExLogInterpolatedStringHandler.AppendLiteral(String) BepInExLogInterpolatedStringHandler.AppendFormatted<T>(T) BepInExLogInterpolatedStringHandler.AppendFormatted<T>(T, String) BepInExLogInterpolatedStringHandler.AppendFormatted(IntPtr, String) BepInExLogInterpolatedStringHandler.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.Core.Logging.Interpolation
Assembly: BepInEx.Core.dll
Syntax
public class BepInExErrorLogInterpolatedStringHandler : BepInExLogInterpolatedStringHandler
Remarks

The class isn't meant to be constructed manually. Instead, use Log(LogLevel, BepInExLogInterpolatedStringHandler) with string interpolation.

Constructors

BepInExErrorLogInterpolatedStringHandler(Int32, Int32, out Boolean)

Declaration
public BepInExErrorLogInterpolatedStringHandler(int literalLength, int formattedCount, out bool isEnabled)
Parameters
Type Name Description
System.Int32 literalLength
System.Int32 formattedCount
System.Boolean isEnabled