Loggo Wrapper

John Meinel john at arbash-meinel.com
Tue Jan 24 06:51:49 UTC 2017


Hey Tim-

I was getting annoyed seeing "TLS" warnings during test runs so I found how
to get those log messages into our actual log:
  https://github.com/juju/juju/pull/6861/files

Essentially, "http" does provide a log object you can pass in, but it must
be a standard library 'log.Logger' which is unfortunately *not* an
interface.

This does the trivial thing of creating an io.Writer that just forwards all
content into the logger.Logf method.

I don't really want it to live inside of 'apiserver', but I was wondering
where a good home would be. I was wondering if it should be part of the
standard 'loggo' package as an official adapter for log.Logger vs loggo ?

Thoughts?
John
=:->
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20170124/98075496/attachment.html>


More information about the Juju-dev mailing list