Skip to main content

Get logging settings

Retrieves settings structure for starting logging on server startup

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_TCP.GetLoggingSettings(True, 100, GetTempFileName());
Result
{
"mode": "both",
"max_entries": 100,
"file_path": "/tmp/1lw1e4mo.11o"
}