Add ProjectZomboidBurdJournalsLog (BurdJournals.txt)
Per-line warnings emitted by the BurdJournals mod, format '[time] [BurdJournals] LEVEL: message.'. Parser captures time, the [BurdJournals] tag as the entry prefix, and the LEVEL token. Detectors: filename match plus content signature on the literal '[BurdJournals]' tag bracket.
This commit is contained in:
18
src/Pattern/ProjectZomboid/BurdJournalsPattern.php
Normal file
18
src/Pattern/ProjectZomboid/BurdJournalsPattern.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace IndifferentKetchup\Codex\Pattern\ProjectZomboid;
|
||||
|
||||
/**
|
||||
* Regex constants for the Project Zomboid BurdJournals.txt format.
|
||||
*
|
||||
* [time] [BurdJournals] LEVEL: message.
|
||||
*
|
||||
* LINE captures, in order:
|
||||
* 1. time
|
||||
* 2. tag (e.g. BurdJournals)
|
||||
* 3. level (WARNING | ERROR | INFO | DEBUG)
|
||||
*/
|
||||
class BurdJournalsPattern
|
||||
{
|
||||
public const string LINE = '/^\[(\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3})\] \[(\w+)\] (WARNING|ERROR|INFO|DEBUG): .+\.?$/';
|
||||
}
|
||||
Reference in New Issue
Block a user