COXIT-CO / ga_zoho_integration

Python script which integrates Zoho CRM deals data with google analytics.
0 stars 0 forks source link

Add logging system to the project #21

Closed Zhornovyi closed 3 years ago

Zhornovyi commented 3 years ago

What does it do?

Adds a logging system to the project. The logger has 2 modes: printing logs to file and printing to console and file at the same time. The mode can be changed with parameters. By default, it`s printing to file. The logger uses a Rotating File Handler. At midnight log file will be rotated.

What else do you need to know?

Logs will be saved in the project folder 'logs', but python has a lot of handlers to send logs from the server if needed. To find out more about handlers, follow the link.

Checklist

Demo screenshots or video/animation, if any

The screenshot shows the file+console mode of logging.

Logging
iramykytyn commented 3 years ago

Logs will be saved in the project folder 'logs', but python has a lot of handlers to send logs from the server if needed.

Could you leave some references here with examples how to do it.