[default: v4.2.0_unscaled]

  -t, --target_cluster=NAME
      Name of cluster management system to be run on.
      choices: [pbs_pro, torque, pleiades]
      [default: pbs_pro]

  -q, --quiet           
      Do not output details of program operation to console

  -l, --log_file=FILE
      Log file where populator operations are stored instead of printed 
      to stdout
'''

args = docopt_simple(usage, version=version)

# Logger for file operations
logger = logging.getLogger(os.path.basename(__file__))

if args.quiet:
    log_util.init_logging(logging.ERROR)
else:
    log_util.init_logging(logging.INFO)

# Initialize logging
if args.log_file:
    log_obj = log_util.open_log_file(args.log_file)
    log_obj.setFormatter(
        logging.Formatter(
            "%(asctime)s: %(name)25s - %(levelname)7s - %(message)s"))
Beispiel #2
0
      [default: v4.2.0_unscaled]

  -t, --target_cluster=NAME
      Name of cluster management system to be run on.
      choices: [pbs_pro, torque, pleiades]
      [default: pbs_pro]

  -q, --quiet           
      Do not output details of program operation to console

  -l, --log_file=FILE
      Log file where populator operations are stored instead of printed 
      to stdout
"""

args = docopt_simple(usage, version=version)

# Logger for file operations
logger = logging.getLogger(os.path.basename(__file__))

if args.quiet:
    log_util.init_logging(logging.ERROR)
else:
    log_util.init_logging(logging.INFO)

# Initialize logging
if args.log_file:
    log_obj = log_util.open_log_file(args.log_file)
    log_obj.setFormatter(logging.Formatter("%(asctime)s: %(name)25s - %(levelname)7s - %(message)s"))
else:
    log_obj = None