Perhaps controller should have a LogDiagnostics method