Disable logging in Python API v1

Solved
Th1b0plz
Here to help

Disable logging in Python API v1

Hi,

 

Since i'v upgraded API in v1, my python script return messages log for each API call and created log file for each execution.

 

How can i disable it ?

 

thks.

1 Accepted Solution
Th1b0plz
Here to help

Thanks for your help.

 

It works at 90% ^^

 

there is no more log displayed in the terminal, no logging entry in the log file but it still created empty I have found these settings, it works fine.

 

dashboard = meraki.DashboardAPI(
...
suppress_logging=True
)

 

View solution in original post

2 Replies 2
PhilipDAth
Kind of a big deal
Kind of a big deal

Use some options like this:

 

dashboard = meraki.DashboardAPI(
        ...
	output_log=False,
	print_console=False
)
Th1b0plz
Here to help

Thanks for your help.

 

It works at 90% ^^

 

there is no more log displayed in the terminal, no logging entry in the log file but it still created empty I have found these settings, it works fine.

 

dashboard = meraki.DashboardAPI(
...
suppress_logging=True
)

 

Get notified when there are additional replies to this discussion.