From 009ec66d86a8bf4f5c8dbf36e79966454e4934a7 Mon Sep 17 00:00:00 2001 From: Paramtamtam <7326800+tarampampam@users.noreply.github.com> Date: Mon, 3 May 2021 20:57:35 +0500 Subject: [PATCH] Logging in JSON format --- 3proxy.cfg | 3 ++- CHANGELOG.md | 6 ++++++ README.md | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/3proxy.cfg b/3proxy.cfg index 9a1b459..d7655cd 100644 --- a/3proxy.cfg +++ b/3proxy.cfg @@ -17,7 +17,8 @@ nscache 65536 timeouts 1 5 30 60 180 1800 15 60 log /dev/stdout -logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T" +# Logging docs: +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 diff --git a/CHANGELOG.md b/CHANGELOG.md index f3f7550..595b638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]. +## v1.3.0 + +### Changed + +- Logging in JSON format + ## v1.2.0 ### Changed diff --git a/README.md b/README.md index 3f0efca..eb417dd 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ## 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].