Page 1 of 1

can verbose output be saved to an error log - shell php

Posted: 2009-05-09T01:44:53-07:00
by tobycarr
Hi,
I am running imagemagick from php as shell commands i.e. using exec function.
I would like to be able to see all imagemagick errors but can't see how. Is there a way if verbose is specified that the verbose comments can be saved off to a log file that I can read?
Or perhaps another way to do this?
From within php would be preferable..off to text file I can read outside.
Thanks

Re: can verbose output be saved to an error log - shell php

Posted: 2009-05-09T09:57:54-07:00
by fmw42
I don't know much about doing it in PHP, but from the command line this seems to work:

echo "$(convert rose.png -verbose info:)" > rose_verbose.txt

Re: can verbose output be saved to an error log - shell php

Posted: 2009-05-09T18:47:00-07:00
by tobycarr
Thanks very much - this works from within php.
Anyone else's tips on logging the running and errors i.e. general comments and debugging of imagemagick shell commands from within php ??
ta