diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2012-November/019954.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-November/019954.html | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-November/019954.html b/zarb-ml/mageia-dev/2012-November/019954.html new file mode 100644 index 000000000..8675f8d58 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-November/019954.html @@ -0,0 +1,132 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] [soft-commits] [6435] Added a first log viewer module. + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B6435%5D%20Added%20a%20first%20log%20viewer%0A%09module.&In-Reply-To=%3C50A0E713.3040407%40linux.it%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="019949.html"> + <LINK REL="Next" HREF="019955.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] [soft-commits] [6435] Added a first log viewer module.</H1> + <B>Angelo Naselli</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B6435%5D%20Added%20a%20first%20log%20viewer%0A%09module.&In-Reply-To=%3C50A0E713.3040407%40linux.it%3E" + TITLE="[Mageia-dev] [soft-commits] [6435] Added a first log viewer module.">anaselli at linux.it + </A><BR> + <I>Mon Nov 12 13:09:55 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="019949.html">[Mageia-dev] [soft-commits] [6435] Added a first log viewer module. +</A></li> + <LI>Next message: <A HREF="019955.html">[Mageia-dev] [soft-commits] [6435] Added a first log viewer module. +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#19954">[ date ]</a> + <a href="thread.html#19954">[ thread ]</a> + <a href="subject.html#19954">[ subject ]</a> + <a href="author.html#19954">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +>>><i> +#- check services +my ) . Data::Dumper->Dump([ $service ], +</I>>>><i> [qw(*services)]) . q( +foreach (split(':', $options{SERVICES})) +</I>>>><i> { + next unless $services{$_}; + $r .= "Service $_ +</I>>>><i> ($services{$_} is not running)\\n" unless -e +</I>>>><i> "/var/lock/subsys/$_"; +} +</I>>><i> You shouldn't leave debugging statement in your code. Moreover, I +</I>>><i> doubt this is syntactically correct. Do you use Test::Compile to +</I>>><i> check your code compiles correctly ? +</I>><i> +</I>><i> Also /var/log/subsys is almost dead under systemd anyway. It's +</I>><i> still used by a few legacy initscripts that systemd calls, but I'm +</I>><i> not sure where this is going. +</I>Ehm the above code is the draklog one, and it was use to create a +wizard to setup mail alert. +It's not implemented yet, in the new log viewer so any new input can be +added now. + + +><i> Also, if you are implementing a new log viewer module, is this +</I>><i> going to use the systemd journal rather than implementing it's own +</I>><i> complex logic for parsing compressed text files? I've not looked at +</I>><i> the code, but it would be *awesome* if this is what was happening +</I>><i> :) +</I>><i> +</I>><i> It's very easy to use the journal APIs (either by linking the +</I>><i> library, using python bindings - not sure if there are external +</I>><i> perl bindings yet, but I wouldn't be surprised if there are - or +</I>><i> simply calling journalctl on the command line and parsing the +</I>><i> result. It offers an easy to parse JSON format so even going via +</I>><i> this route should be trivial if official bindings do not exist). +</I>><i> You can get all logs between certain dates and for particular +</I>><i> services with ease, without having to look in the right file or +</I>><i> grep for the right binary. i.e. all the building blocks are in +</I>><i> place for you :) +</I>I read your comment in draklog bug, i have taken a note and i will +ask you to explain it better to me, since i'm not very familiar with +all this stuff. + +About binding, well libyui allows also to use python and ruby, +so rewriting my rubbish - quoting Steven :p - to re-implementing +another rubbish in python it could be possible and easy :D + +Anyway, Col ehm you could help in this project... +...we will be very happy :D + +Cheers, + Angelo (who continues trying involve people :D) + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) +Comment: Using GnuPG with Mozilla - <A HREF="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</A> + +iEYEARECAAYFAlCg5xAACgkQqEs9DA4DquCx1QCeN8xtJ06uUohpR0WpHzqYbbfI +xoAAn0KHEx34+MHXlr7J+hS6Jp4EGqCD +=aDG5 +-----END PGP SIGNATURE----- +</PRE> + + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="019949.html">[Mageia-dev] [soft-commits] [6435] Added a first log viewer module. +</A></li> + <LI>Next message: <A HREF="019955.html">[Mageia-dev] [soft-commits] [6435] Added a first log viewer module. +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#19954">[ date ]</a> + <a href="thread.html#19954">[ thread ]</a> + <a href="subject.html#19954">[ subject ]</a> + <a href="author.html#19954">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |