1602 / 1602/jugglingdb

Adjust logging levels

Offen
#401 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
2k
Forks
238
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi there,

Is there a way to adjust the logging levels of what is outputted from the database.

On my local machine and on heroku the logs have a lot of this:

`
2014-05-04T21:43:01.113622+00:00 app[web.1]: SELECT * FROM "People" WHERE "id" = 123 LIMIT 1 [3 ms]
`

Which is fine for some things, but it would be really nice to be able to reduce the log level s so I can find another bug from the logs.

Is there a way to do this?

Thanks for your help. I really like this platform.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Look at the database adapter files in lib/adapters/ to see how SQL queries are logged. The issue asks for adjustable log levels, so find where console.log or a logger is called. Check if there's a configuration option for logging and see how other ORMs handle log levels. A test in test/adapters/ might show the current behavior.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, mongodb, mysql, nodejs, postgresql, redis, sqlite
Bereich
backend, databases, tooling
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.