For the lack of any ideas I have created the following work-around:
Now look at the exp_debug and the message will be logged.
Yes, it would depends on what hook you are using as to whether or not writing to the Template Parsing log would be beneficial. I’m guessing you are using control panel extension from your last sentence, in which case you are correct, you’ll need to log information another way. You could still output to the screen if you’re debugging, incidentally, but for actual logging, you’d need to write to the database or to a file.
Thank you for your answers. I’ll definitely look into the Template parsing log.
Guessing here: To debug to screen I would have to modify the EE code, which I don’t want to do. Therefore logging to the database is the easiest I could think of. I added the information for reference for anyone else who could need it.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.