Made logging thread-safe. Changed static getLogger to non-static.