Mimic Log::Log4perl in one single module