Control characters

  • \u001b[1m - Bold
  • \u001b[0m - Reset styles

Colours:

  • \u001b[90m - Grey
  • \u001b[36m - Cyan

Using control characters for colours and fonts

{job="opentelemetry-demo/cartservice"} | json | line_format "\u001b[1m\u001b[0m \u001b[90m[/]\u001b[0m \u001b[36m\u001b[0m \u001b[37m\u001b[3m[traceid=]: "

Prints (with colours):

2023-09-27 09:03:21.050	
ation [          ]  [traceid=a92ac7dff16044217db7b4a650c6a42a]: GetCartAsync called with userId={userId}