HOW TO CREATE A SLOG FOR YOUR OWN FORMAT

1- Create a grammar MyLog.g4 for your format using ANTLR 4.5 syntax
        (check slog.parser.SimpleLog.g4 for a reference)
        
2- Install antlr4
       (check http://antlr4.org)
       

3- Use antlr for with your grammar, indicating the package target of the generated files)
       (e.g., "antlr4 -package my.package.parser MyLog.g4")

       
4- Extend (or modify) the MyLogBaseListener.java to include the code to create a log
       (e.g., slog.parser.SimpleLogRecognizer.java for a reference) 
       

5- Copy 'slog.parser.SimpleLogUtils' and modify it to call your own classes

 
6- Copy and modify 'slog.plugins.WriteSimpleLogUsingEditorPlugin'. 
      (Now you have a ProM graphical editor to create logs in your format. You also have plugin that accepts 'Strings'
         in your format from other plugins).
         
7- Copy and modify 'slog.plugins.ImportSimpleLogPlugin', included the extension of your log files (e.g., '.slog')
      (Now you have an importer for ProM of logs in your own format). 
      

TIP: SLog package contains the sources of different formats as reference.
