Setup logging for the migration process
()
| 19 | |
| 20 | |
| 21 | def setup_logging(): |
| 22 | """Setup logging for the migration process""" |
| 23 | import logging |
| 24 | |
| 25 | logging.basicConfig( |
| 26 | level=logging.INFO, |
| 27 | format="%(asctime)s - %(levelname)s - %(message)s", |
| 28 | handlers=[logging.FileHandler("migration.log"), logging.StreamHandler(sys.stdout)], |
| 29 | ) |
| 30 | return logging.getLogger(__name__) |
| 31 | |
| 32 | |
| 33 | def test_connections(logger): |