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/
>>> 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
>>
>


-- 
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.

Reply via email to