# This program can be used to send Status update messages to the Spong Server
# from shell scripts or other external programs.
#
-# $Id: spong-status.pl,v 1.9 2002/06/04 01:10:01 sljohnson Exp $
+# $Id: spong-status.pl,v 1.10 2003/02/26 15:07:33 sljohnson Exp $
use POSIX;
use Getopt::Long;
# Output functions
-sub error { print STDERR scalar localtime,": $_\n"; }
+sub debug { Spong::Log::debug($_[0],$_[1]); }
+sub error { Spong::Log::error($_[0]); }
+
# This function initializes the debug and error logging contexts in the
# Log module.