MCPcopy Create free account
hub / github.com/wal-e/wal-e / IndentFormatter

Class IndentFormatter

wal_e/log_help.py:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18class IndentFormatter(logging.Formatter):
19
20 def format(self, record, *args, **kwargs):
21 """
22 Format a message in the log
23
24 Act like the normal format, but indent anything that is a
25 newline within the message.
26
27 """
28 return logging.Formatter.format(
29 self, record, *args, **kwargs).replace('\n', '\n' + ' ' * 8)
30
31
32def configure(*args, **kwargs):

Callers 1

configureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected