yex.Logging
yex.logging
#
Loggers
#
getLogger(name)
classmethod
#
Gets the yex logger with the given name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
the name of the logger. That is,
|
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
if name refers to a "magic" logger,
like |
KeyError
|
if the logger requested is unknown |
Source code in yex/logging/logging.py
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 | |
selectLoggers(handlers)
classmethod
#
Sets the loglevel of all loggers.
This behaves as described in this module's docstring.
Note that "turning a logger off" means setting its loglevel to WARNING, and "turning a logger on" means setting its level to DEBUG if "verbose" is off, and INFO otherwise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
handlers
|
str
|
a comma-separated list of handlers;
see this module's docstring for details of the format.
If this is |
required |
Source code in yex/logging/logging.py
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 | |