Added simple logging support