Thanks. I did not know this. I assumed that the only difference between flexible and standard was the pricing, I was wrong. Thanks for the link.
2017-11-04 13:06 GMT+05:30 David Arroyo <dr...@aqwari.net>: > Sankar, > > Have you tried using the Flexible environment? Flex provides a more > "conventional" environment for your programs. There are some tradeoffs > compared with App Engine Standard, but it should be easier to stay portable. > > David > > [1]: https://cloud.google.com/appengine/docs/flexible/go/ > writing-application-logs > > > On Sat, Nov 4, 2017, at 03:26 AM, Sankar P wrote: > > Tried something similar already. > > context.Background() does not work with the appengine log package and > panics at runtime. Passing nil also did not work. > > Probably initialising the AELogAdapter with a ctx from appengine request, > in the _ah start handler is the only way. Thanks for the idea. > > I, for one, though wish that there was a simpler way. > > 2017-11-04 12:47 GMT+05:30 Gulácsi Tamás <tgulacs...@gmail.com>: > > Sth. along https://play.golang.org/p/BwlbkxMLdw ? > > Sankar P <sankar.curios...@gmail.com> ezt írta (időpont: 2017. nov. 4., > Szo, 8:10): > > There is no log.SetWriter in either the builtin log package or the > appengine log package. There is a log.SetOutput which I mentioned in my > original mail, but I am not able to understand how to connect it to the > appengine logs. > > 2017-11-04 11:44 GMT+05:30 Tamás Gulácsi <tgulacs...@gmail.com>: > > Use log.SetWriter to divert log calls to appenginelog, if deployed there. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/to > pic/golang-nuts/XbhcR5eFdno/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > > > -- > Sankar P > http://psankar.blogspot.com > > > > > -- > Sankar P > http://psankar.blogspot.com > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/XbhcR5eFdno/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sankar P http://psankar.blogspot.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.