Changeset 6481 for main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
- Timestamp:
- 27 Jun 2011, 10:31:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r6361 r6481 448 448 """ 449 449 pass 450 451 class ISiteLoggers(Interface): 452 453 loggers = Attribute("A list or generator of registered WAeUPLoggers") 454 455 def register(name, filename=None, site=None, **options): 456 """Register a logger `name` which logs to `filename`. 457 458 If `filename` is not given, logfile will be `name` with 459 ``.log`` as filename extension. 460 """ 461 462 def unregister(name): 463 """Unregister a once registered logger. 464 """ 465 466 class ILogger(Interface): 467 """A logger cares for setup, update and restarting of a Python logger. 468 """ 469 470 logger = Attribute("""A :class:`logging.Logger` instance""") 471 472 473 def __init__(name, filename=None, site=None, **options): 474 """Create a WAeUP logger instance. 475 """ 476 pass 477 478 def setup(): 479 """Create a Python :class:`logging.Logger` instance. 480 481 The created logger is based on the params given by constructor. 482 """ 483 pass 484 485 def update(**options): 486 """Update the logger. 487 488 Updates the logger respecting modified `options` and changed 489 paths. 490 """ 491
Note: See TracChangeset for help on using the changeset viewer.