This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Extensions » Extending debug.ini

Extending debug.ini

Extending debug.ini

Thursday 11 March 2010 3:54:30 pm - 4 replies


I'm coding an extension, and I'd like to use conditional debug in my extension. I mean I put a debug line in my code, and the latter will really be printed in a debug file if settings in my extension allows it.

To achieve this, I've looked at the eZDebugSetting that seems to suit my need

In my extension, I have: eZDebugSetting::writeError( 'dmv-workflow', "my test string", "my test label" );

And in my extension settings, I have a debug.ini.append.php that contains:


However It doesn't print any log message in error.log

(the master switch for conditional debugging is enabled, ConditionDebug=enabled)

Any idea how to solve this problem ?

Thanks for your precious help !

Thursday 11 March 2010 4:10:04 pm

Hello Jérôme,

While i am sure this works with the debug output, i have not tested this with a log file.
Anyway to test that it works fine with the normal debug output first ?

Let us know,

Thursday 11 March 2010 4:39:20 pm


In a template operator from my extension for example, I have the lines:

eZDebug::writeError("my test string with eZDebug", "my test label with eZDebug" );
eZDebugSetting::writeError( 'dmv-workflow', "my test string with eZDebugSetting", "my test label with eZDebugSetting" );

I clean the cache, then i go to a page where my template operator is executed, and i only see:

[ Mar 11 2010 16:34:57 ] [] my test label with eZDebug:
my test string with eZDebug

Definitely, my debug.ini.append.ini is not merged with debug.ini

Any idea is welcome !

Thursday 11 March 2010 5:29:11 pm

Another observation:

If I put my debug.ini.append.php in settings/override, then eZDebugSetting::writeError( 'dmv-workflow', "..."blunk.gif Emoticon works...

It seems I can't use a debug.ini.append.php in an extension.

What am I missing ?

Thanks for your help

Thursday 11 March 2010 7:22:50 pm

As I think it's a bug, i've filled in a bug report:


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from