new_contents: #!/usr/bin/env python
  
  # This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  # Copyright (c) 2017 Mozilla Corporation
  #
  # Contributors:
  # Brandon Myers bmyers@mozilla.com
  
  import logging
  import sys
  from datetime import datetime
  from logging.handlers import SysLogHandler
  
  from toUTC import toUTC
  
  logger = logging.getLogger(sys.argv[0])
  
  
  def loggerTimeStamp(self, record, datefmt=None):
      return toUTC(datetime.now()).isoformat()
  
  
  def initLogger(options):
      logger.level = logging.INFO
      formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
      formatter.formatTime = loggerTimeStamp
      if options.output == 'syslog':
          logger.addHandler(SysLogHandler(address=(options.sysloghostname, options.syslogport)))
      else:
          sh = logging.StreamHandler(sys.stderr)
          sh.setFormatter(formatter)
          logger.addHandler(sh)
subject: Add utility logger for cron