This file documents the tokens and formatstrings used in specifying how FISG should parse a logformat. Predefined logformats are hardcoded in "in_formats.c". Users can define their own logformats without recompilation in separate text-files (see "logformat.cfg" for a simple example how to do that). Parser format ============= %? - Match: Any character %* - Match: Any string until next character %@ - Match: Typical usermode characters: @, + or nothing. %Y - Date: Year (4-digit, "2003") %y - Date: Year (2-digit, "03") %d - Date: Day (2-digit, "17") %j - Date: Month (2-digit, "09") %H - Time: Hours (2-digit, 24h: 00-23) %M - Time: Minutes (2-digit) %S - Time: Seconds (2-digit) %n - Nick: string ending to next char or illegal char. %N Preceeding whitespaces are ignored. Target or Setter can be specified if required, as follows: %n - Target nick (for example in kicks, kicker) %N - Setter nick (for example in kicks, kicker) %m - Modes: ([-+][a-zA-Z])*[ nicks] %c - Channel: string ending to next char or illegal char. Preceeding whitespaces are ignored. %t - Text (actual message-text), up to next character or end of line. Examples ======== In basic Irssi-logformat: "%H:%M <%@%n> %t" - public message "%H:%M -%n:%c- %t" - notice "%H:%M * %n %t" - action "%H:%M -!- mode/%c [%m] by %n" - mode change etc...