Nicolas Martyanoff on Nostr: Boulevard already supported custom HTTP access logs using the variable system, but ...
Boulevard already supported custom HTTP access logs using the variable system, but most sysadmins want a standard format supported by other tools. So it now supports both the common (NCSA) and combined (Apache) log formats.
I had to track response sizes. In #Go, it's as simple as writing a custom http.ResponseWriter and update a counter when the Write method is called.
These formats are unpractical (look at this date format!) but they are supported by many tools, so it's hard to ignore them.
Published at
2024-11-23 21:01:01Event JSON
{
"id": "e33c2674f724018ebef159a1371b86c1c7911a18a5e4e3485ecf4017d6517630",
"pubkey": "6d91e7b056ab18986298e04a8b278a5e070a726487fd30a599427c79db9070e9",
"created_at": 1732395661,
"kind": 1,
"tags": [
[
"t",
"go"
],
[
"imeta",
"url https://cdn.fosstodon.org/media_attachments/files/113/534/281/005/923/367/original/d8e80fc4da760862.png",
"m image/png",
"dim 2342x242",
"blurhash U042J3~qR%M_?c%MRiM{InR$t6t6_4bXk9WA"
],
[
"proxy",
"https://fosstodon.org/users/galdor/statuses/113534282052908938",
"activitypub"
]
],
"content": "Boulevard already supported custom HTTP access logs using the variable system, but most sysadmins want a standard format supported by other tools. So it now supports both the common (NCSA) and combined (Apache) log formats.\n\nI had to track response sizes. In #Go, it's as simple as writing a custom http.ResponseWriter and update a counter when the Write method is called.\n\nThese formats are unpractical (look at this date format!) but they are supported by many tools, so it's hard to ignore them.\n\nhttps://cdn.fosstodon.org/media_attachments/files/113/534/281/005/923/367/original/d8e80fc4da760862.png",
"sig": "23967d8e31cb8b34ca085a4e90d4495b205a0e5b2cdf9358ee9afefa20245420d46559c0051454dd1053568f57c430c26f6b9c295757a004922f1ffeef08c6b4"
}