Get logging settings
Retrieves settings structure for starting logging on server startup
Function GetLoggingSettings(Val WriteToMemory = True, Val MaxEvents = 300, Val FilePath = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| WriteToMemory | - | Boolean | ✖ | Logging log to memory for further retrieval from the addin object |
| MaxEvents | - | Number | ✖ | Maximum number of events stored in memory |
| FilePath | - | String | ✖ | Path 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"
}