Where is the h5pyd log?

Hi,

I am new to python hence, maybe the following question is quite silly.
In the h5pyd code I see several calls like this:

self.log.info("Some message")

Where can I see those messages? Is there any text file where this is dumped to? Do I have to activate this option?

Thanks in advance

Hey,
Don’t feel silly, Python logging can be a bit confusing at first…

The h5pyd package follows whatever log options were setup by the application. You can see how this works by looking at the bottom of one of the test scripts, e.g.: https://github.com/HDFGroup/h5pyd/blob/master/test/hl/test_attribute.py.

Basically, in your application you need to do a:

import logging
loglevel = logging.DEBUG
logging.basicConfig(format='%(asctime)s %(message)s', level=loglevel)

loglevel can be DEBUG, WARNING, INFO, or ERROR

By default the output will go to stdout.