Created
December 15, 2015 17:58
-
-
Save tysonstewart/5487189ac1b8de48cace to your computer and use it in GitHub Desktop.
My log4net syntax for Sublime Text 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>log</string> | |
</array> | |
<key>name</key> | |
<string>Log4Net</string> | |
<key>patterns</key> | |
<array> | |
<dict> | |
<key>captures</key> | |
<dict> | |
<key>1</key> | |
<dict> | |
<key>name</key> | |
<string>storage.type.log4net</string> | |
</dict> | |
<key>2</key> | |
<dict> | |
<key>name</key> | |
<string>variable.other.log4net</string> | |
</dict> | |
<key>3</key> | |
<dict> | |
<key>name</key> | |
<string>invalid.illegal.log4net</string> | |
</dict> | |
<key>4</key> | |
<dict> | |
<key>name</key> | |
<string>keyword.other.log4net</string> | |
</dict> | |
<key>5</key> | |
<dict> | |
<key>name</key> | |
<string>constant.numeric.log4net</string> | |
</dict> | |
<key>6</key> | |
<dict> | |
<key>name</key> | |
<string>constant.character.log4net</string> | |
</dict> | |
</dict> | |
<key>comment</key> | |
<string>Default log4net log string.</string> | |
<key>match</key> | |
<string>^(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3})\s([\w]+)\s\[(WARN|ERROR|FATAL)\s*\]\s\[([\w\.\-@]+)\]\s\[([\w\s\-#]+)\]\s\[request_id=([\(\)\w]+)\]\s+</string> | |
<key>name</key> | |
<string>comment.line.log4net</string> | |
</dict> | |
<dict> | |
<key>captures</key> | |
<dict> | |
<key>1</key> | |
<dict> | |
<key>name</key> | |
<string>storage.type.log4net</string> | |
</dict> | |
<key>2</key> | |
<dict> | |
<key>name</key> | |
<string>variable.other.log4net</string> | |
</dict> | |
<key>3</key> | |
<dict> | |
<key>name</key> | |
<string>entity.name.function.log4net</string> | |
</dict> | |
<key>4</key> | |
<dict> | |
<key>name</key> | |
<string>keyword.other.log4net</string> | |
</dict> | |
<key>5</key> | |
<dict> | |
<key>name</key> | |
<string>constant.numeric.log4net</string> | |
</dict> | |
<key>6</key> | |
<dict> | |
<key>name</key> | |
<string>constant.character.log4net</string> | |
</dict> | |
</dict> | |
<key>comment</key> | |
<string>Default log4net log string.</string> | |
<key>match</key> | |
<string>^(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3})\s([\w]+)\s\[(TRACE|DEBUG|INFO)\s*\]\s\[([\w\.\-@]+)\]\s\[([\w\s\-#]+)\]\s\[request_id=([\(\)\w]+)\]\s+</string> | |
<key>name</key> | |
<string>comment.line.log4net</string> | |
</dict> | |
</array> | |
<key>scopeName</key> | |
<string>source.log4net</string> | |
<key>uuid</key> | |
<string>2be013b9-e0ed-4599-9f6c-10ec27b6bbb5</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment