Logging perl module with extra capabilities for storing state and other information