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 :
> Sankar,
>
> Have you tried using the Flexible environment? Flex provides a more
> "conventional" environment
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-a
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
Sth. along https://play.golang.org/p/BwlbkxMLdw ?
Sankar P 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
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 :
> Use log.SetWriter to dive
Use log.SetWriter to divert log calls to appenginelog, if deployed there.
--
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
I knew about this package. I mentioned about this in my mail itself :-)
I wanted a different way as it is not always possible to replace "log"
calls in all the existing code. Some libraries need to be used in binaries
which will be deployed outside appengine. They should not have a dependency
on a
In appengine you have to use google.golang.org/appengine/log package. The
log calls must have a context passed to it.
See https://cloud.google.com/appengine/docs/standard/go/logs/reference.
On Friday, November 3, 2017 at 3:58:34 AM UTC-4, Sankar wrote:
>
> Hi
>
>
> I have a golang file where I