blob: fc19c685348a32bcefb924325a28804da0bfb4a8 [file] [log] [blame]
:py:mod:`airflow.providers.elasticsearch.log.es_json_formatter`
===============================================================
.. py:module:: airflow.providers.elasticsearch.log.es_json_formatter
Module Contents
---------------
Classes
~~~~~~~
.. autoapisummary::
airflow.providers.elasticsearch.log.es_json_formatter.ElasticsearchJSONFormatter
.. py:class:: ElasticsearchJSONFormatter(fmt=None, datefmt=None, style='%', json_fields=None, extras=None)
Bases: :py:obj:`airflow.utils.log.json_formatter.JSONFormatter`
Convert a log record to JSON with ISO 8601 date and time format.
.. py:attribute:: default_time_format
:value: '%Y-%m-%dT%H:%M:%S'
.. py:attribute:: default_msec_format
:value: '%s.%03d'
.. py:attribute:: default_tz_format
:value: '%z'
.. py:method:: formatTime(record, datefmt=None)
Return the creation time of the LogRecord in ISO 8601 date/time format in the local time zone.