N-Andronopoulos / nestjs-gcp-logger

A logger module for NestJS that is compatible with Google Cloud Logging / Observability..
1 stars 0 forks source link

Pretty output #1

Open Droutin opened 3 weeks ago

Droutin commented 3 weeks ago

Hello, how to pretty output the logs? I'm trying pino-pretty, but that isnt working. nx run api:start | pino-pretty \"[{severity}] {message}\"

[[object Object]]:
    severity: "INFO"
    resource: {
      "type": "global"
    }
    logging.googleapis.com/labels: {}
    logging.googleapis.com/insertId: ".........0nnz8YXIh82If3n9RWuqhxi"
    message: "🚀 Application is running on: http://localhost:8000/api"
    logName: "pamapi"
N-Andronopoulos commented 1 week ago

You could try jq maybe?