1602 / 1602/jugglingdb

Adjust logging levels

Ouverte
#401 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
2k
Forks
238
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, mongodb, mysql, nodejs, postgresql, redis, sqlite
Domaine
backend, databases, tooling
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.