-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store message logs for each channel #6
Comments
Something like var path = app.getPath('userData') + '/' + serverName + '/' + channelName + '/' + isoDate + '.txt';
fs.appendFile(path, theStringToBeLogged, function (err) {
// callback
}); Looks like it's easiest to have the server-side write this file, but if that's the case, messages will come from the IRC daemon, to the server, to the client for parsing and display, and then back to the server for logging. Maybe the server should do all the parsing of the IRC daemon's output, and just send tidy data to the client for templating? Also, I'm a bit worried that the dates/times might not match between server and client. Really each message should be given a timestamp of when it was received by the IRC daemon (or as close as possible) and then that should be used everywhere. |
Log format for messages:
Actions:
Stage directions:
Topic:
|
Eg:
irc.server.net/#somechannel/2015-05-04.txt
The text was updated successfully, but these errors were encountered: