Giter Club home page Giter Club logo

Comments (2)

zarino avatar zarino commented on July 23, 2024

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.

from backchat.

zarino avatar zarino commented on July 23, 2024

Log format for messages:

[2015-07-10T11:54:21Z] <zarino> hello world

Actions:

[2015-07-10T11:54:16Z] • zarino: files a github ticket

Stage directions:

[2015-07-10T11:59:36Z] zarino left the channel

Topic:

[2015-07-10T09:24:49Z] Topic is Hello World!

from backchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.