amazon-cloudwatchlogs

python logging in AWS Fargate, datetime duplicated

python logging in AWS Fargate, datetime duplicated Question: I’m trying to use python logging module in AWS Fargate. The same application should work also locally, so I’d like to use a custom logger for local use but to keep intact cloudwatch logs. This is what I’m doing: if logging.getLogger().hasHandlers(): log = logging.getLogger() log.setLevel(logging.INFO) else: from …

Total answers: 2