Skip to content

BepInExMessageLogInterpolatedStringHandler Class

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

C#
public class BepInExMessageLogInterpolatedStringHandler : BepInExLogInterpolatedStringHandler

Inheritance objectBepInExLogInterpolatedStringHandler

The class isn’t meant to be constructed manually. Instead, use BepInEx.Logging.ManualLogSource.Log(BepInEx.Logging.LogLevel%2cBepInEx.Core.Logging.Interpolation.BepInExLogInterpolatedStringHandler) with string interpolation.

BepInExMessageLogInterpolatedStringHandler(int, int, out bool)

Section titled “BepInExMessageLogInterpolatedStringHandler(int, int, out bool)”
C#
public BepInExMessageLogInterpolatedStringHandler(int literalLength, int formattedCount, out bool isEnabled)

literalLength int

formattedCount int

isEnabled bool