0.3.0 • Published 9 years ago

textual-log-parser v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

textual-log-parser Build Status Dependency Status Gitter

parses Textual log files and returns JavaScript objects

Features:

  • Removes empty lines and Begin/End session lines
  • Corrects missing date in timestamp from early Textual logs.
  • Formats dates consistently with local timezone data.

Module

Point the parser to a directory of Textual logs and it'll return you objects for each line:

{
  "date": "2014-06-30T18:53:44+08:00",
  "value": "<@srn_> ZIGGAGAGAGAGA"
}

The parser will also return number of days and metadata(server, type and title). Example use of the parser:

var parser = require('textual-log-parser')

var directory = "~/Documents/Textual\ logs/Freenode/Channels/#atp";
parser(directory, function(results, days, metadata){
  console.log(days + ' days of logs');
});

CLI

You can also use the parser as a CLI app by installing it globally.

$ npm install --global textual-log-parser

Usage

The CLI will output the results as a JSON file in your current working directory.

$ textual-log-parser --help

Usage
  $ textual-log-parser <directory>

License

MIT © Matias Singers

0.3.0

9 years ago

0.2.0

9 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.0

10 years ago