Clever/kayvee-logger-service

Name: kayvee-logger-service

Owner: Clever

Description: A service for recording client-side events and errors via the Clever logging pipeline.

Created: 2016-02-29 21:58:36.0

Updated: 2018-05-23 22:19:38.0

Pushed: 2018-05-23 22:19:37.0

Homepage: null

Size: 13109

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

kayvee-logger-service

A service for recording client-side events and errors via the Clever logging pipeline.

NOTE: Currently in development.

Clients
Python
Installation: pip

Assuming kayvee-logger-service v1.0.0 is being installed:

install git+https://github.com/Clever/kayvee-logger-service.git@v1.0.0
setup.py
 setuptools import setup

suming kayvee-logger-service v1.0.0 is being installed:
p(

# ...

install_requires=['kayvee-logger-service==1.0.0'],
dependency_links=[
  'https://github.com/Clever/kayvee-logger-service/tarball/v1.0.0#egg=kayvee-logger-service-1.0.0'
],

# ...


Usage:
rt kayvee_logger_service.output as kv_output
rt logger

ogger = logger.Logger("kayvee-logger-service-test", output=kv_output.Output())
ogger.info("sample-log-title", dict(msg="This will get logged to the kayvee-logger-service."))
Environment Variables:

The following environment variables are required to enable kayvee-logger-service discovery:

ICE_KAYVEE_LOGGER_SERVICE_HTTP_HOST
ICE_KAYVEE_LOGGER_SERVICE_HTTP_PORT
Development
Making API definition changes
Requirements go-swagger

go-swagger is required to generate swagger server code. To install or update:

et -u github.com/go-swagger/go-swagger/cmd/swagger
Java Runtime Environment

v1.7 or greater of the Java Runtime Environment is required to generate swagger client code.

First, check your current version of the JRE:

 -version

If there is no appropriate version of JRE installed, you can install v1.7 by running:

 apt-get install openjdk-7-jre
Adding a new client

TODO

Deployment

kayvee-logger-service is deployed using ark:

start kayvee-logger-service -e system

You can also deploy a new version of the service by running the deploy Make target:

 deploy

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.