Working on an irc client in Adobe AIR in JavaScript, and thinking about logging. Each channel would have its own log file. I wouldn’t keep all of the logs open while the app was running would I? I’d log every few minutes? What’s the best way to do this?
Share
I don’t see why not to keep all the log files open. I would not expect any other apps to write to the logs, at least while your client is open. I also would not try (at least at first) to implement your own buffering. Just write lines as they come and let the OS and runtime do the buffering.