lazy_logger: rewritten to speed up compile time.

git-svn-id: https://nicola-bonelli-repo.googlecode.com/svn@1002 0daf1152-ea34-11dd-b00f-9fabb4b2ff13