-
-
Notifications
You must be signed in to change notification settings - Fork 577
[Question] showing sql queries when testing or log to test.log #519
Comments
So Buffalo uses https://github.com/sirupsen/logrus under the covers. So you can either create a new logger: app = buffalo.Automatic(buffalo.Options{
Env: ENV,
SessionName: "_toodo_session",
Logger: ....
}) or you can set the output to something else: App().Logger.Out = someFile |
hi @markbates |
iam getting this when callling
|
Sorry, my bad. The logger is an interface, so you'd have to cast it. |
Do you want me to submit a uber-go/zap version of buffalo logger ? but i couldnt figure where to fix logging for [POP] to use zap |
Hi, I'm trying to log to file, I found this solution, however, I'm unable to do it, this is my last attemp:
but after running it I get a message: I'm relative new to golang and I know it something about the interfaces, but I don't get it yet. Any advice would be helpful Thanks, awesome project! Arnulfo José |
hi,
how do i force test environment to generate log/test.log?
LogDir in opts does not work
thanks
The text was updated successfully, but these errors were encountered: