An extension to log through standard logging module
Georges Racinet
georges.racinet at octobus.net
Thu Jul 18 14:39:03 EDT 2019
On 7/18/19 8:24 PM, Kyle Lippincott wrote:
>
>
> On Thu, Jul 18, 2019 at 11:16 AM Augie Fackler <raf at durin42.com
> <mailto:raf at durin42.com>> wrote:
>
>
>
> > On Jul 16, 2019, at 13:27, Georges Racinet
> <georges.racinet at octobus.net <mailto:georges.racinet at octobus.net>>
> wrote:
> >
> > Hi there,
> >
> > for the needs of Heptapod [1], I ended up writing a small
> extension to
> > divert all possible console output to the standard logging
> module, with
> > the option to send the logs to a Sentry application.
> >
> > The source is at
> https://dev.heptapod.net/heptapod/hgext-loggingmod and
> > its README provides a fairly complete documentation.
> >
> > I think this extension would be useful in many more general server
> > settings, and should therefore probably be versioned with
> hg-core. Some
> > polishing would have to be made to bring it up to standard, and
> I'd be
> > happy to do that if people are interested.
> >
> > A short rationale:
> (...)
> >
> > What do you think ?
>
> I think it makes sense. Kyle, I think we might want this for some
> of our hg API servers too? Having it in core seems sensible to me.
>
>
> Having it in core seems fine to me. I can see possible ways we can use
> it, yes :)
Great, I'll submit patches for this during the 5.2 cycle, then.
Cheers.
>
> >
> > Cheers,
> >
> > [1] That is, our modified GitLab CE that supports Mercurial
> >
> > [2] with `ui.debug` set to True, some of that debugging info
> actually
> > spills into the HTTP responses, making them incorrect.
> >
> >
> > --
> > Georges Racinet
> > https://octobus.net
> > GPG: BF5456F4DC625443849B6E58EE20CA44EF691D39, sur serveurs publics
> >
> >
> > _______________________________________________
> > Mercurial-devel mailing list
> > Mercurial-devel at mercurial-scm.org
> <mailto:Mercurial-devel at mercurial-scm.org>
> > https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
>
>
> --
> --Kyle
>
> Note:
> If I've asked a question, and you're responding to me, please use
> *respond all*, so that other people can read any solutions we come to!
>
--
Georges Racinet
https://octobus.net
GPG: BF5456F4DC625443849B6E58EE20CA44EF691D39, sur serveurs publics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20190718/cce63622/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20190718/cce63622/attachment.sig>
More information about the Mercurial-devel
mailing list