refactored cryptsy log function