public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] standardizing output
@ 2015-10-09  0:38 Mike Frysinger
  2015-10-09  1:24 ` Brian Dolbec
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2015-10-09  0:38 UTC (permalink / raw
  To: gentoo-catalyst

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

how do people feel about killing off the use of "print" everywhere and
moving to the standard logging module ?  biggest advantages in my mind:
- we get much easier control over where the output goes (file/stdout/...)
- we force people to select a level (info/warning/error)
- we get standardized output
- we can more easily control the output (debug/verbose/etc...)
- we can include module/func/line info transparently in debug modes
- we can exit transparently on fatal/critical messages (rather than using
  die/exit/etc... directly)
- we can colorize warnings/errors transparently
- we get py3 compat for free (all current print usage is py2-only)
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-09 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-09  0:38 [gentoo-catalyst] standardizing output Mike Frysinger
2015-10-09  1:24 ` Brian Dolbec
2015-10-09  6:04   ` Mike Frysinger
2015-10-09 15:26     ` Brian Dolbec
2015-10-09 16:01       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox