API Docs for: 2.0.0

Class SAGE2Logger

Class defined in: src/node-logger.js:27

Class for SAGE2 logging, saving JSON objects

constructor( options: )
src/node-logger.js:34

Constructs the object

Parameters:
  • options: <Object>

    path and name fields are required, append is optional

info( header, data )
src/node-logger.js:66

Log some data with a header and some data

Parameters:
  • header <String>

    a header added to the output

  • data <Object>

    The data itself

load( cb )
src/node-logger.js:84

Load the data from the file and return an array of events

Parameters:
  • cb <Function>

    Callback to be called with the data