sam-goodwin / eventual

Build scalable and durable micro-services with APIs, Messaging and Workflows
https://docs.eventual.ai
MIT License
174 stars 4 forks source link

(Local) improve logging by reducing noise and separating system from user #413

Open sam-goodwin opened 1 year ago

sam-goodwin commented 1 year ago

Getting flooded with log messages. I mostly want to see my own logs, not these.

request HttpRequest {
  method: 'OPTIONS',
  headers: HeadersList {
    [Symbol(headers map)]: Map(13) {
      'host' => 'localhost:3111',
      'connection' => 'keep-alive',
      'accept' => '*/*',
      'access-control-request-method' => 'POST',
      'access-control-request-headers' => 'content-type',
      'origin' => 'http://localhost:3000',
      'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36',
      'sec-fetch-mode' => 'cors',
      'sec-fetch-site' => 'same-site',
      'sec-fetch-dest' => 'empty',
      'referer' => 'http://localhost:3000/',
      'accept-encoding' => 'gzip, deflate, br',
      'accept-language' => 'en-US,en;q=0.9'
    },
    [Symbol(headers map sorted)]: null
  },
  body: '{}',
  query: {},
  params: {},
  url: 'http://localhost:3111/rpc/getRows'
}
sam-goodwin commented 1 year ago

The workflow logs are also overwhelming. We should consider eventual system logs in a dedicated local file so i can see my own logs.