Page 1 of 1

Logs Filter (with SIS or standalone)

Posted: Thu Mar 20, 2008 1:38 pm
by Gamall
->
Logs-Filter.zip
(651.22 KiB) Downloaded 407 times
Also on filefront

Code: Select all

*****************************************************************
**                         Logs Filter                         **
*****************************************************************
 
  #-----------------------------------------------------------#  
  #                    TITLE : Logs Filter                    #  
  #                   TYPE : Server Utility                   #  
  #                       VERSION : 0.1                       #  
  #               AUTHOR : Gamall Wednesday Ida               #  
  #               E-MAIL : gamall.ida@gmail.com               #  
  #              WEBSITE : http://gamall-ida.com              #  
  #                                                           #  
  #                    FILESIZE : ~700 Ko                     #  
  #                 OS : Linux, Mac, Windows                  #  
  #                 RELEASE DATE : March 2008                 #  
  #-----------------------------------------------------------#  
 
 
 
+   DESCRIPTION                                                  
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-o          +
 
 This is a filter, in the Unix meaning of the word. Or rather, a 
 collection  of  filters,  which can easily be expanded. To that 
 purpose, the Source Code is shipped, under the GNU GPL.  It  is 
 fully   documented;   see   index.html  in  the  ./doc  folder. 
 
 Filters operate here on a line-by-line basis, and are  seen  as 
 the   combination  of  a  predicate  (string  ->  bool)  and  a 
 transformation (string -> string), the first determining  which 
 lines   to   keep   and   the   second  altering  those  lines. 
 
 A criterion called 'opacity' has been  added  which  determines 
 whether  rejected  lines, all lines or none are sent to STDERR, 
 the idea being to chain an indefinite number  of  such  filters 
 without  losing  the  original  data,  by  recapturing  STDERR. 
 
 Possible uses include offering different views of a JK2 or  JK3 
 gameserver  in  real  time through a Standard Input Server (see 
 documentation of SIS) or  breaking  down  existing  log  files. 
 
 Some  predicates  and  transforms geared towards JK gameservers 
 have been implanted. See docu.txt, or use the --help and --docu 
 command-line options.                                           
 
 
+   THE PACKAGE                                                  
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-o          +
 
 
   -   The Source Code                                           
   -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o          -
 
 The source code for Logs  Filter  is  released  under  the  GNU 
 General Public License.                                         
 
 This program is written in Objective Caml.                      
 
 
   -   The Binaries                                              
   -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o          -
 
 Logs  filter  is  shipped with statically compiled binaries for 
 GNU/Linux, which may or may not work on  your  own  system.  If 
 they  don't  you  will just have to compile it from source. You 
 will need an OCaml compiler. In most cases, you will just  need 
 to run the build script in the /src directory.                  
 
 The  Windows binaries should work on any Windows system from 95 
 on.                                                             
 
 
+   CONTACT                                                      
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-o          +
 
 If you need  help,  or  have  suggestions,  comments,  insults, 
 praise  or  in  general, anything to say about this program you 
 expect me to read and answer to, please post on  the  program's 
 topic on my website:                                            
 
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      
       http://gamall-ida.com/f/viewtopic.php?f=3&t=391
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      
 
 
+   END OF FILE                                                  
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-o          +
 




























  +-----------------------------+
  | File generated with 'GaTeX',|
  | an ASCII typesetting system |
  | by  Gamall  Wednesday  Ida. |
  |   http://gamall-ida.com     |
  +-----------------------------+
  Build: Tue Mar 25 18:07:41 2008
  File : F:readme-logf.GaTeX.source

Re: Logs Filter (with SIS or standalone)

Posted: Tue Mar 25, 2008 9:13 pm
by Gamall
0.1 released.

QConfig Comment Remover

Posted: Tue Apr 08, 2008 5:03 pm
by Gamall
QConfig Comment Remover
QConfig-Comment-Remover.zip
(411 KiB) Downloaded 409 times
This is just a trivial filter necessary when using mEME to create big dynamic quake configuration files: since you are likely to put a lot of math in the comments, the 16K or so limit on CFG files will quickly be exceeded. (although you don't have to use the comments for the math; see mEME documentation.)

This filter removes all comments of the form //... , and all blank lines.

I put this file on log-filter's topic since it is too trivial to warrant a topic of its own. I didn't write a readme either.