Logging in JSON format

This commit is contained in:
Paramtamtam 2021-05-03 20:57:35 +05:00
parent 19c9d5528e
commit 009ec66d86
No known key found for this signature in database
GPG Key ID: 366371698FAD0A2B
3 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,8 @@ nscache 65536
timeouts 1 5 30 60 180 1800 15 60 timeouts 1 5 30 60 180 1800 15 60
log /dev/stdout log /dev/stdout
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T" # Logging docs: <https://3proxy.org/doc/howtor.html#LOGFORMAT>
logformat "-\""+_G{""time_unix"":%t, ""proxy"":{""type:"":""%N"", ""port"":%p}, ""error"":{""code"":""%E""}, ""user"":""%U"", ""client"":{""ip"":""%C"", ""port"":%c}, ""server"":{""ip"":""%R"", ""port"":%r}, ""bytes"":{""sent"":%O, ""received"":%I}, ""hostname"":""%n"", ""message"":""%T""}"
maxconn 1024 maxconn 1024

View File

@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver]. The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
## v1.3.0
### Changed
- Logging in JSON format
## v1.2.0 ## v1.2.0
### Changed ### Changed

View File

@ -12,7 +12,7 @@
## Why this image created? ## Why this image created?
3proxy is awesome and lightweight proxy-server. This image contains stable version with it and can be configured using environment variables. By default, it uses anonymous (information about client hiding) proxy settings. 3proxy is awesome and lightweight proxy-server. This image contains stable version with it and can be configured using environment variables. By default, it uses anonymous (information about client hiding) proxy settings. Logging in JSON format.
> Page on `hub.docker.com` can be [found here][link_docker_hub]. > Page on `hub.docker.com` can be [found here][link_docker_hub].