├── .gitignore ├── .travis.yml ├── README.md ├── bin └── logfmt ├── examples ├── express_buffered.js ├── express_mime.js ├── express_pipe.js ├── express_pipe_to_stdout.js ├── express_readable.js ├── file ├── https.js ├── post_form ├── post_to_express.js ├── post_via_curl ├── quick.sh ├── r14.logfmt ├── restify_buffered.js ├── restify_pipe_to_stdout.js ├── restify_pipe_to_stdout2.js ├── simple_cmd.js ├── speed.sh ├── test_cmd_line ├── test_express ├── test_express_readable ├── test_log ├── through.js ├── timed_log.js ├── two_streams.js └── vanilla_http.js ├── lib ├── body_parser.js ├── body_parser_stream.js ├── logfmt_parser.js ├── logger.js ├── request_logger.js ├── streaming.js └── stringify.js ├── logfmt.js ├── package.json └── test ├── body_parser_stream_test.js ├── body_parser_test.js ├── error_tests.js ├── log_time.js ├── logging_tests.js ├── mocha.opts ├── namespace_test.js ├── namespace_time.js ├── new_logfmt.js ├── outstream.js ├── parser_tests.js ├── request_logger_test.js ├── roundtrip_tests.js ├── singleton_test.js ├── stream_parser_test.js ├── stream_stringify_test.js ├── stringify_test.js └── through_test.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/README.md -------------------------------------------------------------------------------- /bin/logfmt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/bin/logfmt -------------------------------------------------------------------------------- /examples/express_buffered.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/express_buffered.js -------------------------------------------------------------------------------- /examples/express_mime.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/express_mime.js -------------------------------------------------------------------------------- /examples/express_pipe.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/express_pipe.js -------------------------------------------------------------------------------- /examples/express_pipe_to_stdout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/express_pipe_to_stdout.js -------------------------------------------------------------------------------- /examples/express_readable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/express_readable.js -------------------------------------------------------------------------------- /examples/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/file -------------------------------------------------------------------------------- /examples/https.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/https.js -------------------------------------------------------------------------------- /examples/post_form: -------------------------------------------------------------------------------- 1 | curl -X POST --data-binary @examples/file http://localhost:3000/logs 2 | -------------------------------------------------------------------------------- /examples/post_to_express.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/post_to_express.js -------------------------------------------------------------------------------- /examples/post_via_curl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/post_via_curl -------------------------------------------------------------------------------- /examples/quick.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/quick.sh -------------------------------------------------------------------------------- /examples/r14.logfmt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/r14.logfmt -------------------------------------------------------------------------------- /examples/restify_buffered.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/restify_buffered.js -------------------------------------------------------------------------------- /examples/restify_pipe_to_stdout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/restify_pipe_to_stdout.js -------------------------------------------------------------------------------- /examples/restify_pipe_to_stdout2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/restify_pipe_to_stdout2.js -------------------------------------------------------------------------------- /examples/simple_cmd.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/simple_cmd.js -------------------------------------------------------------------------------- /examples/speed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/speed.sh -------------------------------------------------------------------------------- /examples/test_cmd_line: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/test_cmd_line -------------------------------------------------------------------------------- /examples/test_express: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/test_express -------------------------------------------------------------------------------- /examples/test_express_readable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/test_express_readable -------------------------------------------------------------------------------- /examples/test_log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/test_log -------------------------------------------------------------------------------- /examples/through.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/through.js -------------------------------------------------------------------------------- /examples/timed_log.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/timed_log.js -------------------------------------------------------------------------------- /examples/two_streams.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/two_streams.js -------------------------------------------------------------------------------- /examples/vanilla_http.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/examples/vanilla_http.js -------------------------------------------------------------------------------- /lib/body_parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/lib/body_parser.js -------------------------------------------------------------------------------- /lib/body_parser_stream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/lib/body_parser_stream.js -------------------------------------------------------------------------------- /lib/logfmt_parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/lib/logfmt_parser.js -------------------------------------------------------------------------------- /lib/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/lib/logger.js -------------------------------------------------------------------------------- /lib/request_logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/lib/request_logger.js -------------------------------------------------------------------------------- /lib/streaming.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/lib/streaming.js -------------------------------------------------------------------------------- /lib/stringify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/lib/stringify.js -------------------------------------------------------------------------------- /logfmt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/logfmt.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/package.json -------------------------------------------------------------------------------- /test/body_parser_stream_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/body_parser_stream_test.js -------------------------------------------------------------------------------- /test/body_parser_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/body_parser_test.js -------------------------------------------------------------------------------- /test/error_tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/error_tests.js -------------------------------------------------------------------------------- /test/log_time.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/log_time.js -------------------------------------------------------------------------------- /test/logging_tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/logging_tests.js -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --ui tdd 2 | --reporter spec 3 | --check-leaks 4 | -------------------------------------------------------------------------------- /test/namespace_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/namespace_test.js -------------------------------------------------------------------------------- /test/namespace_time.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/namespace_time.js -------------------------------------------------------------------------------- /test/new_logfmt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/new_logfmt.js -------------------------------------------------------------------------------- /test/outstream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/outstream.js -------------------------------------------------------------------------------- /test/parser_tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/parser_tests.js -------------------------------------------------------------------------------- /test/request_logger_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/request_logger_test.js -------------------------------------------------------------------------------- /test/roundtrip_tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/roundtrip_tests.js -------------------------------------------------------------------------------- /test/singleton_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/singleton_test.js -------------------------------------------------------------------------------- /test/stream_parser_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/stream_parser_test.js -------------------------------------------------------------------------------- /test/stream_stringify_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/stream_stringify_test.js -------------------------------------------------------------------------------- /test/stringify_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/stringify_test.js -------------------------------------------------------------------------------- /test/through_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csquared/node-logfmt/HEAD/test/through_test.js --------------------------------------------------------------------------------