Logging.py : new functions for logging process and channel activities