ios - Monotouch- Access a native library's stderr -
i linking third-party native library using linkwith attribute. native library outputting various logs in stderr channel. access logs because need study bug in said third-party library.
i tried redirecting stderr console.seterror(console.out) have in console, no dice. tried output in environment.specialfolder.personal folder -keeptemp argument have on disk, alternative failed. there other way access stderr of linked native library?
here code tried:
var = datetime.now.tostring("yyyymmddhhmm"); console.writeline(environment.getfolderpath (environment.specialfolder.personal)); string path = environment.getfolderpath (environment.specialfolder.personal); string filepath = path.combine(path, + ".txt"); textwriter errstream = new streamwriter(filepath); // redirect standard error stream file. console.seterror(errstream); console.error.writeline(); console.error.writeline("application started @ {0}.", now); console.error.writeline();
thank time, paul
ios objective-c logging monotouch stderr
No comments:
Post a Comment