]> mj.ucw.cz Git - libucw.git/blobdiff - lib/shell/logger.c
XML: Backuped unfinished XML parser.
[libucw.git] / lib / shell / logger.c
index 52b901a88d31ba324159eebf7752fdef826e11ef..67315c9eb4a8fb8900786e6a10aca7b486a3ff39 100644 (file)
@@ -1,7 +1,10 @@
 /*
- *     Sherlock Utilities -- A Simple Logger for use in shell scripts
+ *     UCW Library Utilities -- A Simple Logger for use in shell scripts
  *
  *     (c) 2001 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
@@ -26,14 +29,14 @@ main(int argc, char **argv)
   else
     log_init(argv[1]);
   if (argc > 3)
-    log(argv[2][0], argv[3]);
+    msg(argv[2][0], argv[3]);
   else
     while (fgets(buf, sizeof(buf), stdin))
       {
        c = strchr(buf, '\n');
        if (c)
          *c = 0;
-       log(argv[2][0], buf);
+       msg(argv[2][0], buf);
       }
   return 0;
 }