How to use the @signalk/streams/logging.listLogFiles function in @signalk/streams

To help you get started, we’ve selected a few @signalk/streams examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SignalK / signalk-server-node / src / interfaces / logfiles.js View on Github external
app.get('/logfiles/', function(req, res, next) {
    listLogFiles(app, (err, files) => {
      if (err) {
        console.error(err)
        res.status(500)
        res.send('Error reading logfiles list')
        return
      }
      res.json(files)
    })
  })
  app.get('/logfiles/:filename', function(req, res, next) {

@signalk/streams

Utilities for handling streams of Signal K data

Apache-2.0
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis