Added solution for implementing logging in a library.

Signed-off-by: Paulo Caetano <paulo.a.o.caetano@gmail.com>