import logging

LOG_FORMAT = '%(asctime)s [%(name)s] %(levelname)s %(message)s'
LOG_DATE = '%Y-%m-%d %I:%M:%S %p'


logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=logging.WARN)
logger = logging.getLogger('yoda-discover')
logger.level = logging.INFO

import logging

LOG_FORMAT = '[%(name)s] %(levelname)s %(message)s'

logging.basicConfig(format=LOG_FORMAT, level=logging.WARN)
logger = logging.getLogger('yoda-discover')
logger.level = logging.INFO

Remove date from log formatting (handled by syslog)
Remove date from log formatting (handled by syslog)

  import logging
  
- LOG_FORMAT = '%(asctime)s [%(name)s] %(levelname)s %(message)s'
+ LOG_FORMAT = '[%(name)s] %(levelname)s %(message)s'
- LOG_DATE = '%Y-%m-%d %I:%M:%S %p'
  
- 
- logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=logging.WARN)
+ logging.basicConfig(format=LOG_FORMAT, level=logging.WARN)
  logger = logging.getLogger('yoda-discover')
  logger.level = logging.INFO
  
Remove date from log formatting (handled by syslog)
## Code Before:
import logging

LOG_FORMAT = '%(asctime)s [%(name)s] %(levelname)s %(message)s'
LOG_DATE = '%Y-%m-%d %I:%M:%S %p'


logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=logging.WARN)
logger = logging.getLogger('yoda-discover')
logger.level = logging.INFO

## Instruction:
Remove date from log formatting (handled by syslog)
## Code After:
import logging

LOG_FORMAT = '[%(name)s] %(levelname)s %(message)s'

logging.basicConfig(format=LOG_FORMAT, level=logging.WARN)
logger = logging.getLogger('yoda-discover')
logger.level = logging.INFO
