@classmethod
def get_logger_name(cls, name=None):
    """Returns a logger name according to the class' constant NAME.

        The logger name requested is always relative to the class'
        constant NAME; if you do not provide a name, then you'll get
        `cls.NAME`.

        If you provide a name, it will be treated as a child of
        that class name.  So the name "foo" will get the result of
        `'%s.foo' % cls.NAME`
        """
    if name is None:
        return cls.NAME
    return '%s.%s' % (cls.NAME, name)
