How to log ONLY query in mgo ?

26 views
Skip to first unread message

Ram Bharose Rana

unread,
Jan 7, 2017, 11:29:06 AM1/7/17
to mgo-users

How to log every query with mgo in standard output? I set logger but it shows a lot of information 

Gustavo Niemeyer

unread,
Jan 9, 2017, 3:34:42 AM1/9/17
to mgo-...@googlegroups.com
Hi there,

If you want to filter it out, you'll need to use a logger instance (a type implementing the Output method) that does that.

On Sat, Jan 7, 2017 at 2:29 PM, Ram Bharose Rana <rb.ra...@gmail.com> wrote:

How to log every query with mgo in standard output? I set logger but it shows a lot of information 

--
You received this message because you are subscribed to the Google Groups "mgo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mgo-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages