UNPKG

log4js-elasticsearch

Version:

log4js appender for node that targets elasticsearch. Compatible with logstash's elasticsearch_http output; Viewable with Kibana.

39 lines (30 loc) 908 B
BIN = ./node_modules/.bin MOCHA_OPTS = --timeout 2000 REPORTER = spec TEST_FILES = test/*.js TEST_INTEGRATION_FILES = test/integration/*.js BIN = ./node_modules/.bin lint: $(BIN)/jshint lib/* test/* --config .jshintrc test: lint $(BIN)/mocha \ $(MOCHA_OPTS) \ --reporter $(REPORTER) \ $(TEST) test-integration: lint $(BIN)/mocha \ $(MOCHA_OPTS) \ --reporter $(REPORTER) \ $(TEST_INTEGRATION_FILES) test-ci: $(MAKE) -k test MOCHA_OPTS="$(MOCHA_OPTS) --watch --growl" REPORTER="min" lib-cov: [ -d "lib-cov" ] && rm -rf lib-cov || true $(BIN)/istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib test-cov: lib-cov @LOG4JS_COV=1 $(MAKE) test "REPORTER=mocha-istanbul" ISTANBUL_REPORTERS=text-summary,html clean: [ -d "lib-cov" ] && rm -rf lib-cov || true [ -d "reports" ] && rm -rf reports || true [ -d "build" ] && rm -rf build || true .PHONY: test