Skip to main content

Get logging settings

Retrieves settings structure for enabling logging when creating a connection or opening a port

Function GetLoggingSettings(Val WriteToMemory = True, Val MaxEvents = 300, Val FilePath = "") Export

ParameterCLI optionTypeRequiredDescription
WriteToMemory-BooleanLogging to memory for further retrieval from the addin object
MaxEvents-NumberMaximum number of events stored in memory
FilePath-StringPath to file for saving full log, if necessary
Returns

Structure Of KeyAndValue - Settings structure

Caution

NOCLI: this method is not available in CLI version

1C:Enterprise/OneScript code example
Result = OPI_ZeroMQ.GetLoggingSettings(True, 100, GetTempFileName());
Result
{
"mode": "both",
"max_entries": 100,
"file_path": "/tmp/fr1g4m3b.tw3"
}