MCPcopy Create free account
hub / github.com/ceph/ceph / setup_logging

Method setup_logging

src/script/cpatch.py:234–258  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232 return list(Component)
233
234 def setup_logging(self):
235 logging.config.dictConfig(
236 {
237 "version": 1,
238 "disable_existing_loggers": True,
239 "formatters": {
240 "default": {
241 "class": "logging.Formatter",
242 "format": "%(asctime)s %(levelname)s: %(message)s",
243 },
244 },
245 "handlers": {
246 "stderr": {
247 "formatter": "default",
248 "level": "DEBUG",
249 "class": "logging.StreamHandler",
250 "stream": sys.stderr,
251 }
252 },
253 "root": {
254 "level": self._cli.log_level,
255 "handlers": ["stderr"],
256 },
257 }
258 )
259
260 @classmethod
261 def parse(cls):

Callers 3

stress_test.pyFile · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected