Whatever you do, don’t panic!
Log4Twitter
Log4Twitter is very similar to an idea Herbert an me had a couple of years ago, to use a Jabber messaging framework to get distributed logging and alerts from several servers/applications.
It is a Java class that allows you to “log” to Twitter. This would easily allow you to set up an application that sends messages to a private Twitter Account that you can subscribe to. Retrieving those messages should then be possible by IM or even SMS, seems like a perfect set up for me.
Using Log4Twitter is as easy as the following:
Setting Classpath
Add log4twitter-1.0.jar to your application’s classpath.
Note that log4twitter-1.0.jar has to be loaded by the same classloader that will load the logging framework.Setting Logger
Edit your logging framework’s configuration to enable Log4Twitter.
The fully qualified class name of log4twitter is “log4twitter.FRAMEWORK_NAME.TwitterAppender”.
See the Log4Twitter page for some examples.
Now who’s got the time to code a Linux syslogd replacement or supplement, so I can receive important log messages via Twitter?
| Print article | This entry was posted by Florian Beer on 30. May, 2007 at 16:01, and is filed under development, linux, server, web. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
Twitter time weirdness
about 3 weeks ago - No comments
I just stumbled over a very odd detail concerning the Twitter homepage: The timestamps on my tweets differ, depending on which URL I use to access my profile. http://twitter.com/azath0th shows my last tweet as being published on 10:40 AM Aug 9th http://twitter.com/Azath0th (notice the capital “A”) says the last tweet was posted on 12:40 AM
Blog updates
about 1 year ago - No comments
I shifted around a few things on my blog today. The main thing is, that the blog header now shows my latest tweet (which is also my latest Facebook status) and the time since it was posted. Other improvements include a reorganisation of the sidebar widgets and a few CSS adaptions.
Colorful make output
about 1 year ago - No comments
This handy piece of code colors errors and warnings in make output. (put it in your .bash_profile) make() { pathpat="(/[^/]*)+:[0-9]+” ccred=$(echo -e “\033[0;31m") ccyellow=$(echo -e "\033[0;33m") ccend=$(echo -e "\033[0m") /usr/bin/make "$@" 2>&1 | sed -E -e "/[Ee]rror[: ]/ s%$pathpat%$ccred&$ccend%g” -e “/[Ww]arning[: ]/ s%$pathpat%$ccyellow&$ccend%g” return ${PIPESTATUS[0]} } via shawnwilsher.com An
Linuxwochen Eisenstadt 2008
about 2 years ago - No comments
On Mai the 30th & 31st the Austrian “Linuxwochen” will again hit my former university in Eisenstadt. Look ahead for some very interesting talks by several highly skilled people. One event I’d especially like to draw your attention to is Oliver’s pice about “Linux Server Experience with VServer” on Fr. the 30th. at 17:15 hours.
/dev/null in C#
about 2 years ago - 1 comment
If you need to direct output into the void in your program on a *NIX system you simply pipe or redirect it to the null device /dev/null. Needing a similar functionality today in a C# .NET project I found the following equivalent: Stream.Null Seemed fairly useful to me
Ubuntu countdown
about 2 years ago - 1 comment
MySecureShell – chrooted SFTP server
about 2 years ago - 1 comment
Yesterday the wonderful Howtoforge had an article that finally freed me from my beloved/hated scponly. MySecureShell offers all the functionality of a proper SFTP server, easily configurable and very well integrated. To get it up and running on Debian, just download the latest *.deb version from Sourceforge. Then install it with the following command: dpkg
last.twit – Dashboard widget
about 3 years ago - 1 comment
Oliver just released his latest creation. A Mac OS X Dashboard Widget that displays the album covers of your latest played songs via Last.fm. What I love most is that, when you click on one of the cover pictures the Widget displays some more info about that particular song and also lets you send the
Jeff Atwood: When In Doubt, Make It Public
about 3 years ago - No comments
Jeff Atwood wrote a funny (and very true) article about what’s new or not so new in these Web 2.0 days. I especially had to laugh at the idea that “new” ideas on the net are merely replicas of old UNIX tools introduced by Marc Hedlund. talk, finger ICQ LISTSERV DejaNews ls Yahoo! directory find,
Colorful grep
about 3 years ago - 4 comments
grep is a useful little *nix command line utility that makes it easy to search for strings in files. The real beauty comes when you start using it with pipes. One thing that kind of bothered me since I started using it, that it didn’t highlight the string you where searching for in it’s output.











about 3 years ago
i still think, that the jabber idea would be much better then the twitter solution.
about a server.
ok, twitter hypes now – but jabber server are build for all important OS and little bit python or perl makes it possible to send messages via this server.
only people registered on it can get the information – more secure, more private – thats the it should be for syslog information