Skip to main content

WithMinimumAssemblyLogLevel Method

Configures the minimum log level that the testbed will emit for the calculation assembly when it runs.

Definition​

Namespace: GHost.GSharp.Developer.Builder
Type: AssemblyBuilder
Assembly: GHost.GSharp.Developer.dll

public AssemblyBuilder WithMinimumAssemblyLogLevel(LogLevel minLogLevel)

Parameters​

minLogLevel LogLevel
The lowest log level that will be written for the assembly when running in the testbed (for example, LogLevel.Info or LogLevel.Debug).

Return Value​

AssemblyBuilder
The same builder instance, to allow fluent configuration.

Example​

private void ConfigureAssembly(AssemblyBuilder builder)
{
builder
.WithMinimumAssemblyLogLevel(LogLevel.Info)
.AddModule<TankVolume>(moduleBuilder => moduleBuilder
// ... configure points and contexts here
);
}

Remarks​

Use this method when you want to restrict the volume of log output from the testbed. For routine test runs you might choose LogLevel.Info, while for detailed investigations you might set LogLevel.Debug.

This setting applies to the assembly when it runs under the testbed host and does not affect logging behaviour when the same assembly runs under a production gSharp server.

See Also​