Ignore:
Timestamp:
13 Nov 2014, 14:40:27 (10 years ago)
Author:
Henrik Bettermann
Message:

Change of name.

Location:
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/logger.py

    r9988 r11949  
    1919Convenience stuff for logging.
    2020
    21 Main component of :mod:`waeup.kofa.utils.logging` is a mix-in class
    22 :class:`waeup.kofa.utils.logging.Logger`. Classes derived (also) from
     21Main component of :mod:`waeup.ikoba.utils.logging` is a mix-in class
     22:class:`waeup.ikoba.utils.logging.Logger`. Classes derived (also) from
    2323that mix-in provide a `logger` attribute that returns a regular Python
    2424logger logging to a rotating log file stored in the datacenter storage
     
    3030The `logger_name` tells under which name the logger should be
    3131registered Python-wise. This is usually a dotted name string like
    32 ``waeup.kofa.${sitename}.mycomponent`` which should be unique. If you
     32``waeup.ikoba.${sitename}.mycomponent`` which should be unique. If you
    3333pick a name already used by another component, trouble is ahead. The
    3434``${sitename}`` chunk of the name can be set literally like this. The
     
    4646your `logger_name` and `logger_filename` attribute and off you go::
    4747
    48   from waeup.kofa.utils.logger import Logger
     48  from waeup.ikoba.utils.logger import Logger
    4949
    5050  class MyComponent(object, Logger):
    5151      # Yes that's a complete working class
    52       logger_name = 'waeup.kofa.${sitename}.mycomponent
     52      logger_name = 'waeup.ikoba.${sitename}.mycomponent
    5353      logger_filename = 'mycomponent.log'
    5454
     
    6767
    6868The datacenter and its storage are created automatically when you
    69 create a :class:`waeup.kofa.app.University`. This also means that
     69create a :class:`waeup.ikoba.app.University`. This also means that
    7070logging with the `Logger` mix-in will work only inside so-called sites
    7171(`University` instances put into ZODB are such `sites`).
     
    8282from zope.component import queryUtility
    8383from zope.interface import Interface, Attribute, implements
    84 from waeup.kofa.interfaces import (
     84from waeup.ikoba.interfaces import (
    8585    IDataCenter, IDataCenterStorageMovedEvent, ILoggerCollector)
    86 from waeup.kofa.utils.helpers import get_current_principal
     86from waeup.ikoba.utils.helpers import get_current_principal
    8787
    8888#: Default logfile size (5 KB, not relevant for DatedRotatingFileHandlers)
     
    154154
    155155    #: The Python logger name used when
    156     #: logging. ``'waeup.kofa.${sitename}'`` by default. You can use the
     156    #: logging. ``'waeup.ikoba.${sitename}'`` by default. You can use the
    157157    #: ``${sitename}`` placeholder in that string, which will be
    158158    #: replaced by the actual used site name.
    159     logger_name = 'waeup.kofa.${sitename}'
     159    logger_name = 'waeup.ikoba.${sitename}'
    160160
    161161    #: The format to use when logging.
     
    386386    return
    387387
    388 from waeup.kofa.interfaces import IUniversity
     388from waeup.ikoba.interfaces import IUniversity
    389389@grok.subscribe(IUniversity, grok.IObjectRemovedEvent)
    390390def handle_site_removed(obj, event):
Note: See TracChangeset for help on using the changeset viewer.