pytimber.LoggingDB.__init__

LoggingDB.__init__(appid: str = 'PYTIMBER4', clientid: str = 'PYTIMBER3', source: str = 'nxcals', loglevel: Optional[Union[str, int]] = None, sparkconf: Optional[str] = None, sparkprops: Optional[Mapping[str, str]] = None, kerberosprincipal: Optional[str] = None, kerberoskeytab: Optional[str] = None, data_location: str = 'pro', spark_session: Optional[SparkSession] = None, service_url: str = 'https://cs-ccr-nxcals6.cern.ch:19093,https://cs-ccr-nxcals7.cern.ch:19093,https://cs-ccr-nxcals8.cern.ch:19093')

Initializes a new instance of the PyTimber client.

Parameters:
  • appid (str, optional) – The name of the PyTimber application. Default is ‘PYTIMBER4’.

  • clientid (str, optional) – Obsolete argument kept for backward compatibility with no effect on the current version. Previous meaning: the name of the PyTimber client. Default was ‘PYTIMBER3’.

  • source (str, optional) – Obsolete argument kept for backward compatibility with no effect on the current version. Previous meaning: the name of the data source. Default was (always) ‘nxcals’.

  • loglevel (Union[str, int], optional) – Obsolete argument kept for backward compatibility with no effect on the current version. Previous meaning: the logging level. Default is None.

  • sparkconf (str, optional) – The pre-configuration name for Apache Spark (can be: “small”, “medium”, “large”). Default is None.

  • sparkprops (Mapping[str, str], optional) – A dictionary of Spark properties. Default is None.

  • kerberosprincipal (str, optional) – The Kerberos principal. Default is None.

  • kerberoskeytab (str, optional) – The path to the Kerberos keytab file. Default is None.

  • data_location (str, optional) – Obsolete argument kept for backward compatibility with no effect on the current version. Please make us of service_url. Previous meaning: the location of the data. Default was ‘pro’

  • spark_session (SparkSession, optional) – A SparkSession instance. Default is None.

  • service_url (str) – The URL of the NXCALS service. Default is pointing to PRO environment.