summaryrefslogtreecommitdiff
path: root/gnu/packages/django.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2020-09-01 15:18:51 +0200
committerMarius Bakke <marius@gnu.org>2020-09-22 18:41:58 +0200
commitc96bc57a1e8b517e987bb1bd7144be46d05b0bbc (patch)
tree80693ca7926a9420c71dd14f1d96d99985f18dc1 /gnu/packages/django.scm
parent44272f2d7bdd7f50dbc160a1cf50010e6f620d25 (diff)
gnu: Add python-django-logging-json.
* gnu/packages/django.scm (python-django-logging-json): New public variable.
Diffstat (limited to 'gnu/packages/django.scm')
-rw-r--r--gnu/packages/django.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index d19395a906..b109df148c 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1205,3 +1205,28 @@ FileFields during tests.")
(description
"This packages provides a LDAP authentication backend for Django.")
(license license:bsd-2)))
+
+(define-public python-django-logging-json
+ (package
+ (name "python-django-logging-json")
+ (version "1.15")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "django-logging-json" version))
+ (sha256
+ (base32
+ "06041a8icazzp73kg93c7k1ska12wvkq7fpcad0l0sm1qnxx5yx7"))))
+ (build-system python-build-system)
+ (arguments '(#:tests? #f)) ;no tests
+ (propagated-inputs
+ `(("python-certifi" ,python-certifi)
+ ("python-django" ,python-django)
+ ("python-elasticsearch" ,python-elasticsearch)
+ ("python-six" ,python-six)))
+ (home-page "https://github.com/cipriantarta/django-logging")
+ (synopsis "Log requests/responses in various formats")
+ (description
+ "This package provides a Django library that logs request, response,
+and exception details in a JSON document. It can also send logs directly
+to ElasticSearch.")
+ (license license:bsd-2)))