GameLogTrivialDebug Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Logs the specified text to the RAGE Plugin Hook log file, if the current logging verbosity setting is equal to, or greater than [!:LoggingVerbosity::Trivial].

When the calling Assembly is not compiled in DEBUG mode, calls to this method will not be compiled.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

[ConditionalAttribute("DEBUG")]
public static void LogTrivialDebug(
	string text
)

Parameters

text
Type: SystemString
The text to log.
Examples

Consider a plugin with the following source code:

void SpawnPoliceVehicle()
{
    new Vehicle("VEHICLE2", Game.LocalPlayer.Character.GetOffsetPosition(Vector3.RelativeFront * 7f), 0f);
    Game.LogDebug("Spawned police car");
}

When the plugin is compiled in DEBUG mode, the code is compiled to:

void SpawnPoliceVehicle()
{
    new Vehicle("VEHICLE2", Game.LocalPlayer.Character.GetOffsetPosition(Vector3.RelativeFront * 7f), 0f);
    Game.LogDebug("Spawned police car");
}

However, when the plugin is not compiled in DEBUG mode (Eg. RELEASE mode), the code is compiled to:

void SpawnPoliceVehicle()
{
    new Vehicle("VEHICLE2", Game.LocalPlayer.Character.GetOffsetPosition(Vector3.RelativeFront * 7f), 0f);
}

See Also

Reference