Logging framework for shell scripts