View Full Version : NSLog in Plugin!!!
DeDMakar
Apr 21, 2008, 05:40 AM
I use example /Developer/Examples/Security/bannersample. I wish to write down processes of the app in log a file. Function NSLog gives a error. Syslog() and record in a file does not work. What to do?:confused:
DeDMakar
Apr 21, 2008, 07:17 AM
#import <syslog.h>
int main(int argc, char *argv[])
{
syslog(0, "my syslog message");
return 0;
}
//Text in file /var/log/system.log
I have solved this problem: not system.log but secure.log.
Why I can not write down in a file?
record in a file:
int TextInFile(){
FILE *fp1;
fp1 = fopen("/Run.log", "a");
fprintf(fp1, "new first string enter from Main.c\n");
fclose(fp1);
return 0;
}
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.