MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / setup_logging

Function setup_logging

migrate_to_postgres.py:21–30  ·  view source on GitHub ↗

Setup logging for the migration process

()

Source from the content-addressed store, hash-verified

19
20
21def 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
33def test_connections(logger):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected