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 log 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/tfr0lk40.yzh"
}