Skip to content

Python code crashes if I use %f in datefmt #184

@nramprasad85

Description

@nramprasad85

The code below crashes. But if I remove %f it works.
My application is a time critical one and the microsecond info is most required. lacking %f is a showstopper for me.
Please let me know once it is enabled, will then start using 🙏

import picologging as logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S.%f')
logger=logging.getLogger()
print("starting")
logger.info("test")
print("done")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions