On 05/02/2020 07:23, Marcus Meissner wrote:

On Tue, Feb 04, 2020 at 03:03:26PM +0000, Jim Easterbrook wrote:
I'd like to map the GPLogLevel enum to Python's logging system. The
GPLogLevel values are documented as:

GP_LOG_ERROR    Log message is an error information.
GP_LOG_VERBOSE  Log message is a verbose debug information.
GP_LOG_DEBUG    Log message is a debug information.
GP_LOG_DATA     Log message is a data hex dump.

This is the incremental order, top down is getting more debug information 
printed.

Could I suggest changing the description of GP_LOG_VERBOSE to "Log message is verbose information." At present it looks as if it's a more verbose version of GP_LOG_DEBUG.

I currently map GPLogLevel as follows:

GP_LOG_ERROR   : WARNING     # 30
GP_LOG_VERBOSE : INFO        # 20
GP_LOG_DEBUG   : DEBUG       # 10
GP_LOG_DATA    : DEBUG - 5   #  5

I think this is reasonable.

Thanks Marcus.
--
Jim Easterbrook                 <http://www.jim-easterbrook.me.uk/>


_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to