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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A service for recording client-side events and errors via the Clever logging pipeline.
NOTE: Currently in development.
Assuming kayvee-logger-service v1.0.0 is being installed:
install git+https://github.com/Clever/kayvee-logger-service.git@v1.0.0
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'
],
# ...
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."))
The following environment variables are required to enable kayvee-logger-service
discovery:
ICE_KAYVEE_LOGGER_SERVICE_HTTP_HOST
ICE_KAYVEE_LOGGER_SERVICE_HTTP_PORT
Make any desired API changes in kayvee-logger-service.yaml
.
To update the auto-generated server and client code with your changes:
codegen
go-swagger
is required to generate swagger server code.
To install or update:
et -u github.com/go-swagger/go-swagger/cmd/swagger
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
TODO
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