package MyPackage; use Log::Log4perl qw(:easy); sub method { DEBUG "Doing something!"; }