如何使用sails在控制台日志中显示查询? [英] How to show queries in console log using sails?

查看:40
本文介绍了如何使用sails在控制台日志中显示查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用sails和mysql开始一个项目,我不知道如何配置它以显示在控制台中执行的查询.

I am starting a project with sails and mysql, and I do'nt know how configurate it to show the queries executed in the console.

推荐答案

遗憾的是,虽然已经请求了该功能,但目前无法使用 Sails.最好的办法是检查数据库提供的日志文件:

Unfortunately this isn't possible with Sails at this time, although the feature has been requested. Your best bet is to inspect the log file provided by your database:

Postgres:如何记录 PostgreSQL 查询?

MySQL:记录mysql中的所有查询

MongoDB:MongoDB 记录所有查询

这篇关于如何使用sails在控制台日志中显示查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆