I just embed fn:concat() within the call the xdmp:log() and concatenation
the various message parts, e.g.

xdmp:log(concat("Path: ", {$path}))

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of helen chen
Sent: Friday, November 05, 2010 11:16 AM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] question about logging

Hello there,

In Marklogic, I use xdmp:log() to log message to  ErrorLog.txt file.  I want
to do some logging similar to script, like I specify the path and file name,
then I write just the message I want to this file and then keep appending
message to this file.  I expect that this should not stop the normal logging
of xdmp:log().

Does anyone have suggestion on how to do it?

Thanks, Helen
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to