[PR #116] [MERGED] feat: support customize http log format #477

Closed
opened 2026-04-08 16:53:05 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/116
Author: @sigoden
Created: 7/30/2022
Status: Merged
Merged: 7/31/2022
Merged by: @sigoden

Base: mainHead: feat-log-format


📝 Commits (4)

📊 Changes

7 files changed (+255 additions, -27 deletions)

View changed files

📝 README.md (+19 -1)
📝 src/args.rs (+20 -8)
📝 src/auth.rs (+29 -12)
src/log_http.rs (+99 -0)
📝 src/main.rs (+1 -0)
📝 src/server.rs (+9 -6)
tests/log_http.rs (+78 -0)

📄 Description

dufs supports customize http log format via option --log-format.

The default format is $remote_addr "$request" $status.

All variables list below:

name description
$remote_addr client address
$remote_user user name supplied with authentication
$request full original request line
$status response status
$http_ arbitrary request header field. examples: $http_user_agent, $http_referer

use dufs --log-format='' to disable http log


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/116 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 7/30/2022 **Status:** ✅ Merged **Merged:** 7/31/2022 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat-log-format` --- ### 📝 Commits (4) - [`ede37ac`](https://github.com/sigoden/dufs/commit/ede37ac973f666d6aa8c14f0a131d71fa3644ac8) feat: support customize http log format - [`5861925`](https://github.com/sigoden/dufs/commit/5861925220f7aab13cf0f79a6af591dd37c6faaa) implement - [`14d3771`](https://github.com/sigoden/dufs/commit/14d377114688a2613379b5f63e1a5cf4f22da85b) add tests - [`fe3d7e0`](https://github.com/sigoden/dufs/commit/fe3d7e0cfc53593215a82b47d6ea6fc685d9a66c) fix no_log ### 📊 Changes **7 files changed** (+255 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+19 -1) 📝 `src/args.rs` (+20 -8) 📝 `src/auth.rs` (+29 -12) ➕ `src/log_http.rs` (+99 -0) 📝 `src/main.rs` (+1 -0) 📝 `src/server.rs` (+9 -6) ➕ `tests/log_http.rs` (+78 -0) </details> ### 📄 Description dufs supports customize http log format via option `--log-format`. The default format is `$remote_addr "$request" $status`. All variables list below: | name | description | | ------------ | ------------------------------------------------------------------------- | | $remote_addr | client address | | $remote_user | user name supplied with authentication | | $request | full original request line | | $status | response status | | $http_ | arbitrary request header field. examples: $http_user_agent, $http_referer | > use `dufs --log-format=''` to disable http log --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:05 +03:00
zhus closed this issue 2026-04-08 16:53:05 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#477