fluent-logger
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -60,3 +60,3 @@ var util = require('util'); | ||
var tag = [self.tag, label].join('.'); | ||
var time = (new Date()).getTime(); | ||
var time = (new Date()).getTime() / 1000; | ||
var packet = [tag, time, data]; | ||
@@ -63,0 +63,0 @@ return { |
{ | ||
"name": "fluent-logger", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -1,34 +0,33 @@ | ||
fluent-logger for node.js | ||
===================================================================== | ||
# fluent-logger for node.js | ||
Install | ||
--------------------------------------------------------------------- | ||
fluent-logger implementation for node.js inspired by [fluent-logger-python]. | ||
## Install | ||
$ npm install fluent-logger | ||
Prerequistes | ||
--------------------------------------------------------------------- | ||
## Prerequistes | ||
Fluent daemon should listen on TCP port. | ||
Usage | ||
--------------------------------------------------------------------- | ||
## Usage | ||
Send an event record to fluentd | ||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
### Send an event record to fluentd | ||
var logger = require('fluent-logger') | ||
// The 2nd argument can be omitted. Here is a defualt value for options. | ||
logger.configure('tag', { | ||
host: 'localhost', | ||
port: 24224 | ||
timeout: 3.0 | ||
}); | ||
var logger = require('fluent-logger') | ||
// The 2nd argument can be omitted. Here is a defualt value for options. | ||
logger.configure('tag', { | ||
host: 'localhost', | ||
port: 24224 | ||
timeout: 3.0 | ||
}); | ||
// send an event record with 'tag.label' | ||
logger.emit('label', {record: 'this is a log'}); | ||
// send an event record with 'tag.label' | ||
logger.emit('label', {record: 'this is a log'}); | ||
License | ||
--------------------------------------------------------------------- | ||
## License | ||
Apache License, Version 2.0 | ||
[fluent-logger-python]: https://github.com/fluent/fluent-logger-python | ||
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
0
36857
34
2