kitech / php-go

Write PHP extension using go/golang. Zend API wrapper for go/golang.
882 stars 108 forks source link

Turn off debug log/print messages? #20

Open sanbornm opened 7 years ago

sanbornm commented 7 years ago

How do you turn off all the print/log messages to actually use this as a module?

keenanwl commented 7 years ago

I had to go through and just remove all of the debug lines. It didn't look like there was a global toggle for it yet.

sanbornm commented 7 years ago

That is what I ended up doing, thanks!

kitech commented 7 years ago

good point. I will add custom log level.

can i ask if you have public projects base on phpgo, then i can closely watch the need features.

keenanwl commented 7 years ago

Thanks! That would be helpful. And thanks for the hard work putting this project together.

I hope so once things settle down here at work :)

kitech commented 7 years ago

support custom log in c side. build command:

CGO_FLAGS="-DLOGLEVEL=error" make

this only leave error message.