Section 6 of 6 Schema
Byte saving with UseShortKeys
If network overhead or storage indexing cost is a concern, enable options.WithShortKeys(true) in your configuration. This compresses the JSON structure by shortening all key names:
{
"ts": "2026-07-30T19:55:05.120Z",
"lvl": "Information",
"cat": "Network",
"msg": "ENTER - HTTP GET /api/v1/projects",
"trc": "fa7dedf4-ec83-4b6e-a3f3-01883f7047b6",
"span": "8b9c2401-26ab-4a1e-8fe5-12a4bdf62002",
"num": 1,
"mth": "ProjectsController.GetProjects",
"dt": { }
}Key mapping rules
| Original Key | Short Key |
|---|---|
| timestamp | ts |
| level | lvl |
| category | cat |
| message | msg |
| traceId | trc |
| spanId | span |
| parentId | pid |
| logNum | num |
| duration | dur |
| methodName | mth |
| data | dt |