Basic logging mechanism.