Conditional logging with classname/functionname.

Signed-off-by: IUnknown68 <arne@salsitasoft.com>