Service Manager / Service Center Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Write to a text/log file

SOLVED
Go to solution
Peeves02
Super Collector

Write to a text/log file

Has anyone ever tried writing a message into a text file in SM7.11?  I don't want to send the messages into the sm.log file.  I want to use my own log file in the server.

 

Would appreciate any ideas on this one.

 

Regards.

 

 

4 REPLIES
abhijitkhewale
Regular Collector
Solution

Re: Write to a text/log file

Hi P, Use javascript to achieve this. As rtecall("log") print message in sm.log file only.
-m-
Honored Contributor

Re: Write to a text/log file

As Abhijit stated, Service Manager provides a JavaScript global method named writeFile (see Help Server). The documentation states it writes data to the local file system. It is important to note that SM supports server-side JavaScript only so the "local file system" is the server (not the user's client machine).

Peeves02
Super Collector

Re: Write to a text/log file

Neat! Thanks guys. Thanks for that very useful info.
Highlighted
abhijitkhewale
Regular Collector

Re: Write to a text/log file

Appreciate KUDOS.
//Add this to "OnDomLoad" event