Add a basic config before the flask app is initialized
Store logs with severity levels of: DEBUG, INFO, WARNING to the console.
Store logs with severity levels of: ERROR, CRITICAL to a file.
Rotate 2 files to store the ERROR and CRITICAL messages as follows:
Each file should grow to maximum 500 MiB.
When the first file reaches the maximum size, a new file is opened and logged to.
When the second file reaches the maximum size, the first file is discarded and the second file becomes the first file, while a third (now the active file, which is being logged to) file is created.
Disable logging in tests to keep the console clean.
Add a basic config before the flask app is initialized
Store logs with severity levels of: DEBUG, INFO, WARNING to the console.
Store logs with severity levels of: ERROR, CRITICAL to a file.
Rotate 2 files to store the ERROR and CRITICAL messages as follows:
Disable logging in tests to keep the console clean.