exo_bespin/logging/logging_tools.py
def _log_environment_info():
    """Logs information about the user's environment and system"""

    # Log environment information
    logging.info('User: ' + getpass.getuser())
    logging.info('System: ' + socket.gethostname())
    logging.info('Python Version: ' + sys.version.replace('\n', ''))
    logging.info('Python Executable Path: ' + sys.executable)

    # Log the software environment
    environment = subprocess.check_output(['conda', 'env', 'export'], universal_newlines=True)
    logging.info('Environment:')
    for line in environment.split('\n'):
        logging.info(line)
Logs information about the user's environment and system
Logs information about the user's environment and system
Logs information about the user ' s environment and system
def _log_environment_info():
    logging.info('User: ' + getpass.getuser())
    logging.info('System: ' + socket.gethostname())
    logging.info('Python Version: ' + sys.version.replace('\n', ''))
    logging.info('Python Executable Path: ' + sys.executable)
    environment = subprocess.check_output(['conda', 'env', 'export'], universal_newlines=True)
    logging.info('Environment:')
    for line in environment.split('\n'):
        logging.info(line)
def _log_environment_info ( ) : logging . info ( 'User: ' + getpass . getuser ( ) ) logging . info ( 'System: ' + socket . gethostname ( ) ) logging . info ( 'Python Version: ' + sys . version . replace ( '\n' , '' ) ) logging . info ( 'Python Executable Path: ' + sys . executable ) environment = subprocess . check_output ( [ 'conda' , 'env' , 'export' ] , universal_newlines = True ) logging . info ( 'Environment:' ) for line in environment . split ( '\n' ) : logging . info ( line )
Logs information about the user's environment and system
Logs information about the user ' s environment and system
"""Logs information about the user's environment and system""" # Log environment information # Log the software environment