clt-logger

0.8.0

xcode-actions/clt-logger

What's New

CLTLogger 0.8.0

2024-01-06T22:36:05Z

CLTLogger

A simple SwiftLog-compatible logger designed for Command Line Tools.

Usage

TODO

Metadata Log Format

The metadata log format is very opinionated:

  • Everything is backslashed so as to be able to actually parse the metadata directly from the output;

  • But we assume level0 keys will never contain spaces, or any other weird chars, and so we do not quote neither backslash level0 keys;

  • Keys are sorted in the output, always.

Example of logs:

⚠️ [request_id: "42"] with some metadata
⚠️ [request_id: "42", service_id: "ldap"] with some metadata
⚠️ [faulty_wires: "[\"d\", \"a\", \"oops, has\\\"a quote\"]", request_id: "42", service_id: "ldap"] with some metadata

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Wed May 01 2024 21:01:01 GMT-0900 (Hawaii-Aleutian Daylight Time)