cterasdk.edge.logs module

cterasdk.edge.logs module#

class cterasdk.edge.logs.Logs(gateway)#

Bases: BaseCommand

Gateway Logs APIs

Variables:

default_include (list[str]) – Default log fields - ‘severity’, ‘time’, ‘msg’, ‘more’

default_include = ['severity', 'time', 'msg', 'more']#
logs(topic, include=None, minSeverity='info')#

Fetch Gateway logs

Parameters:
  • topic (str) – Log Topic to fetch

  • include (list[str],optional) – List of fields to include in the response, defailts to Logs.default_include

  • minSeverity (cterasdk.edge.enum.Severity,optional) – Minimal log severity to fetch, defaults to cterasdk.edge.enum.Severity.INFO

Returns:

Log lines

Return type:

cterasdk.lib.iterator.Iterator

settings(retention, min_severity=None)#

Configure log settings

Parameters: