Logger prefixes for api/apiserver are changing

John Meinel john at arbash-meinel.com
Wed Sep 3 03:00:53 UTC 2014


>
> ...
> There were two ideas proposed:
>
> loggo.LoggerForPackage("juju")
>
> which would walk up the path until it found a path element juju, and
> construct the string that way. The other was do use a defined prefix:
>

The only problem here is that we have:
  github.com/juju/juju/juju
and
  github.com/juju/juju/cmd/juju

Which would confuse this algorithm. Though I like its brevity.

John
=:->


>
> loggo.LoggerForPackage("github.com/juju")
>
> which would take what was after those path elements to generate the string.
>
>
> I'm happy with either being implemented, but would like feedback on the
> ideas.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140903/a4d646b7/attachment.html>


More information about the Juju-dev mailing list