It's probably too late and it doesn't answer your question, but you could use
Log::Log4perl, print your debug information with
DEBUG verbosity and change the default verbosity to something lower than that before release.
Sorry if my advice was wrong.