Skip to content

add glob to allow for glob patterns in config.#152

Closed
martindale wants to merge 1 commit intoNarrativeScience-old:masterfrom
martindale:glob-patterns
Closed

add glob to allow for glob patterns in config.#152
martindale wants to merge 1 commit intoNarrativeScience-old:masterfrom
martindale:glob-patterns

Conversation

@martindale
Copy link
Copy Markdown

This allows for the following pattern to be specified, which looks something like this:

exports.config = {
  nodeName: "application_server",
  logStreams: {
    apache: require('glob').sync('/var/log/router/+[access|error]*.log')
  },
  server: {
    host: '0.0.0.0',
    port: 28777
  }
}

@msmathers
Copy link
Copy Markdown
Collaborator

v0.4.3 uses JSON configuration, so it won't support 3rd party node libraries. In the future we'll look into doing dynamic paths for file watching, but will need to evaluate all candidate approaches.

@msmathers msmathers closed this Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants