Skip to content

log with invocation context #10

@feth

Description

@feth

At first, we need this poc to work :

from logging import Logger, StreamHandler, Formatter
import sys

logger = Logger("name")

handler = StreamHandler(sys.stdout)

class MyFormatter(Formatter):
    pass


myformatter = MyFormatter()
handler.setFormatter(myformatter)

logger.addHandler(handler)



class Bidon(object):
    """
    >>> b = Bidon()
    [Bidon] coucou
    """
    def __init__(self):
        logger.warning("coucou")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions