servoy Log Files

Questions and answers for designing and implementing forms in Servoy

servoy Log Files

Postby hardina09 » Wed Aug 14, 2013 4:47 pm

I am working on log files. I created custom log files in which I am checking event times and writing in log files which is fine in Dev server while for LIVE server nothing is written.

Here's what I have done is creating files using plugins.

var file = plugins.file.createFile("//<IP Address>/MyAppData/ServoyLog.txt");
if(file.exists())
{
plugins.file.appendToTXTFile(file,"\n Event Started at : " + application.getServerTimeStamp() +'\n')
}
else
{
//do other stuff.
}

Please suggest where I am having problem
hardina09
 
Posts: 62
Joined: Tue Apr 24, 2012 9:46 pm

Re: servoy Log Files

Postby jcompagner » Mon Sep 02, 2013 10:01 am

i don't think on a server you have rights to just write a file from the root on // and then with an ipadress

does file.exists() ever says true?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Forms

Who is online

Users browsing this forum: Bing [Bot] and 8 guests

cron