Jonathan Burchmore
: jburchmore at, mivamerchant d0t com
04/03/2013 14:37 p.m.
04/03/2013 14:37 p.m.
Here is a simple example that demonstrates logging.
<MvIF
EXPR
="
{ NOT miva_openlog( 'Logging example', '', 'USER' ) }
>"
miva_openlog failed
<MvEXIT>
</MvIF>
<MvIF
EXPR
="
{ NOT miva_writelog( 'INFO', 'This is an INFO message' ) }
>"
miva_writelog failed
<MvEXIT>
</MvIF>
<MvIF
EXPR
="
{ NOT miva_writelog( 'DEBUG', 'This is a DEBUG message' ) }
>"
miva_writelog failed
<MvEXIT>
</MvIF>
<MvIF
EXPR
="
{ NOT miva_closelog() }
>"
miva_closelog failed
<MvEXIT>
</MvIF>