Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ target/

.project
.pydevproject
.DS_Store
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[![Build Status](https://travis-ci.org/QualiSystems/cloudshell-logger.svg?branch=dev)](https://travis-ci.org/QualiSystems/cloudshell-logger)
[![Coverage Status](https://coveralls.io/repos/github/QualiSystems/cloudshell-logger/badge.svg?branch=dev)](https://coveralls.io/github/QualiSystems/cloudshell-logger?branch=dev)
[![PyPI version](https://badge.fury.io/py/cloudshell-logger.svg)](https://badge.fury.io/py/cloudshell-logger)
[![Dependency Status](https://dependencyci.com/github/QualiSystems/cloudshell-logger/badge)](https://dependencyci.com/github/QualiSystems/cloudshell-logger)
[![Stories in Ready](https://badge.waffle.io/QualiSystems/cloudshell-logger.svg?label=ready&title=Ready)](http://waffle.io/QualiSystems/cloudshell-logger)
[![Build Status](https://travis-ci.org/QualiSystems/cloudshell-logging.svg?branch=dev)](https://travis-ci.org/QualiSystems/cloudshell-logging)
[![Coverage Status](https://coveralls.io/repos/github/QualiSystems/cloudshell-logging/badge.svg?branch=dev)](https://coveralls.io/github/QualiSystems/cloudshell-logging?branch=dev)
[![PyPI version](https://badge.fury.io/py/cloudshell-logging.svg)](https://badge.fury.io/py/cloudshell-logging)
[![Dependency Status](https://dependencyci.com/github/QualiSystems/cloudshell-logging/badge)](https://dependencyci.com/github/QualiSystems/cloudshell-logging)
[![Stories in Ready](https://badge.waffle.io/QualiSystems/cloudshell-logging.svg?label=ready&title=Ready)](http://waffle.io/QualiSystems/cloudshell-logging)

<p align="center">
<img src="https://github.com/QualiSystems/devguide_source/raw/master/logo.png"></img>
</p>

# Cloudshell logger

Repo for the cloudshell-logger package. The cloudshell-logger package contains scripts and classes that help to create logger suitable for shells.
Repo for the cloudshell-logging package. The cloudshell-logging package contains scripts and classes that help to create logger suitable for shells.
6 changes: 3 additions & 3 deletions cloudshell/logging/qs_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _get_log_path_config(config):
try:
return tpl.format(**os.environ)
except KeyError:
print ("Environment variable is not defined in the template {}".format(tpl))
print("Environment variable is not defined in the template {}".format(tpl))
else:
return config.get('UNIX_LOG_PATH')

Expand Down Expand Up @@ -123,7 +123,7 @@ def get_accessible_log_path(reservation_id='Autoload', handler='default'):
log_path = _get_log_path_config(config)

if log_path:
env_folder = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "..", "..", "..")
env_folder = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "..", "..")
shell_name = os.path.basename(os.path.abspath(env_folder))
log_path = os.path.join(log_path, reservation_id, shell_name)
path = _prepare_log_path(log_path=log_path,
Expand All @@ -146,7 +146,7 @@ def log_execution_info(logger_hdlr, exec_info):
if not hasattr(logger_hdlr, 'info_logged'):
logger_hdlr.info_logged = True
logger_hdlr.info('--------------- Execution Info: ---------------------------')
for key, val in exec_info.iteritems():
for key, val in exec_info.items():
logger_hdlr.info('{0}: {1}'.format(key.ljust(20), val))
logger_hdlr.info('-----------------------------------------------------------\n')

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
required_for_tests = f_tests.read().splitlines()

setup(
name='cloudshell-logger',
name='cloudshell-logging',
url='http://www.qualisystems.com/',
author='Quali',
author_email='info@quali.com',
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.0.0
1.0.1