<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Client write log</title><link>https://www.aras.com/community/f/development/3681/client-write-log</link><description>Hi

In server can use =&amp;gt;CCO.Utilities.WriteDebug(&amp;quot;DebugFile&amp;quot;,&amp;quot;test&amp;quot;);  to write log.

I want write log in client but client can use what?</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Client write log</title><link>https://www.aras.com/community/thread/1562?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 09:26:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:5e22fddc-0fc8-4733-8ec6-cc48d679f6ef</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

If you&amp;#39;re trying to log to a file from a Client method, the easiest way would probably be to create a server-side method that is just responsible for logging messages like the one below.

&lt;pre&gt;&lt;code&gt;string message = this.getProperty(&amp;quot;message&amp;quot;);
string fileName = this.getProperty(&amp;quot;file_name&amp;quot;);
CCO.Utilities.WriteDebug(fileName, message);
return this;&lt;/code&gt;&lt;/pre&gt;


You can then call this server method from your client methods with a line like below.

&lt;code&gt;var result = aras.applyMethod(&amp;quot;LogMessage&amp;quot;, &amp;quot;&amp;lt;message&amp;gt;Action completed successfully&amp;lt;/message&amp;gt;&amp;lt;file_name&amp;gt;test.log&amp;lt;/file_name&amp;gt;&amp;quot;);&lt;/code&gt;

Chris

&lt;hr /&gt;

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>