Home | History | Annotate | Download | only in logging

Lines Matching defs:Formatter

29            'FATAL', 'FileHandler', 'Filter', 'Formatter', 'Handler', 'INFO',
343 # Formatter classes and functions
346 class Formatter(object):
348 Formatter instances are used to convert a LogRecord to text.
352 be interpreted by either a human or an external system. The base Formatter
356 The Formatter can be initialized with a format string which makes use of
392 Initialize the formatter with specified format strings.
394 Initialize the formatter either with the specified format string, or a
408 This method should be called from format() by a formatter which
416 is used; to change this for a particular formatter instance, set the
420 set the 'converter' attribute in the Formatter class.
490 # The default formatter to use when no other is specified
492 _defaultFormatter = Formatter()
496 A formatter suitable for formatting a number of records.
500 Optionally specify a formatter which will be used to format each
651 interface. Handlers can optionally use Formatter instances to format
652 records as desired. By default, no formatter is specified; in this case,
657 Initializes the instance - basically setting the formatter to None
663 self.formatter = None
717 If a formatter is set, use it. Otherwise, use the default formatter
720 if self.formatter:
721 fmt = self.formatter
756 Set the formatter for this handler.
758 self.formatter = fmt
843 If a formatter is specified, it is used to format the record.
898 #Handler constructor to set level, formatter, lock etc.
1498 sys.stderr, set a formatter using the BASIC_FORMAT format string, and
1535 fmt = Formatter(fs, dfs)