Re: Balsa's terminal logging
Albrecht Dreß <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.balsa |
|---|---|
| Message-ID | <[email protected]> |
Hi André: Am 06.01.18 00:43 schrieb(en) andré via balsa-list: > Judging by my experience with other applications, that would certainly help debug problems, if it is not too difficult to implement. Not really, as it's basically overwriting GLib's default handler. The bigger task is to classify the existing messages as debug/info/… and to put them into appropriate domains. > It could even help more advanced users resolve configuration problems by themselves. Yes, good point. > From what you say, it seems it would give cleaner code as well. Yes! > Since log files have a tendancy to occupy a lot of space longer term, it would be a plus if older log entries were automatically removed. For example, I don't think log entries over a month old would still be useful. Well, if you start Balsa from a terminal, these messages just go to stdout and stderr. Re-direct them into a file if you need them. Running Balsa from the desktop environment, IIRC /etc/X11/Xsession decides where log messages are stored. For me (Ubuntu 16.04 LTS w/ XFCE), they go to ~/.xsession-errors. The file is rotated every time a new X session is started. But using our own handler, it would be easy to write log messages to one or more files (which could be rotated) instead of stdout/stderr, or even send them to syslog. Cheers, Albrecht. _______________________________________________ balsa-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/balsa-list
signature.asc
(application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJaUM2DAAoJEEypbw5n59n4UFcIAM6UG3z7OYbFoSRc5WKTYTsj c8jFlCD7iVavMNqHP2nkCtP3wvWwymE+e+g7Ii52z8Qv3vb2AcRq976s5mNS0fsV 6jLM4nEms9U0y6xG/zDBzUICwHT5pC3AhATfbyatYwefla36Gm3bR7AE5Cxt6ZVV Kbb6avXF1Z6agC4+BovK9REE2dZu6XhC3ec/FgfA/XsJKf8GnLqBq7+7019XoxNQ JGERjG8SkLIY/5XICKSkYGDyFueUgb8gf2dEBS8RcIloJlc/iZZcTDywreXpVkdv KMqLvqRgRNCPp47GiFYcRAK5alIjJrFTFuHSJELwXdvfxFe/3O7PmfR9mBhFJms= =4S0c -----END PGP SIGNATURE-----