Skip to content

Commit

Permalink
Merge pull request #34 from MythicalLTD/8-improve-announcements
Browse files Browse the repository at this point in the history
Make a better announcement system!
  • Loading branch information
NaysKutzu authored Jul 20, 2024
2 parents 4d30126 + 69e1a2a commit f7e247e
Show file tree
Hide file tree
Showing 6 changed files with 524 additions and 60 deletions.
82 changes: 81 additions & 1 deletion .vscode/vscode.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,90 @@
"* LEVELS: INFO, WARNING, ERROR, CRITICAL, OTHER",
"* TYPE: OTHER, CORE, DATABASE, PLUGIN, LOG, OTHER",
"*/",
"Logger::log(Logger::$1,Logger::$2,\"$3\");"
"Logger::log(LoggerLevels::$1,LoggerTypes::$2,\"$3\");"
],
"description": "Some error logging!"
},
"S_LOG_INFO": {
"prefix": "S_LOG_INFO",
"scope": "php",
"body": [
"/**",
"* Logger",
"* ",
"* Logs something: LEVEL, TYPE, MESSAGE",
"* ",
"* LEVELS: INFO, WARNING, ERROR, CRITICAL, OTHER",
"* TYPE: OTHER, CORE, DATABASE, PLUGIN, LOG, OTHER",
"*/",
"Logger::log(LoggerLevels::INFO,LoggerTypes::OTHER,\"$1\");"
],
"description": "Some info logging!"
},
"S_LOG_WARNING": {
"prefix": "S_LOG_WARNING",
"scope": "php",
"body": [
"/**",
"* Logger",
"* ",
"* Logs something: LEVEL, TYPE, MESSAGE",
"* ",
"* LEVELS: INFO, WARNING, ERROR, CRITICAL, OTHER",
"* TYPE: OTHER, CORE, DATABASE, PLUGIN, LOG, OTHER",
"*/",
"Logger::log(LoggerLevels::WARNING,LoggerTypes::OTHER,\"$1\");"
],
"description": "Some warning logging!"
},
"S_LOG_ERROR": {
"prefix": "S_LOG_ERROR",
"scope": "php",
"body": [
"/**",
"* Logger",
"* ",
"* Logs something: LEVEL, TYPE, MESSAGE",
"* ",
"* LEVELS: INFO, WARNING, ERROR, CRITICAL, OTHER",
"* TYPE: OTHER, CORE, DATABASE, PLUGIN, LOG, OTHER",
"*/",
"Logger::log(LoggerLevels::ERROR,LoggerTypes::OTHER,\"$1\");"
],
"description": "Some error logging!"
},
"S_LOG_CRITICAL": {
"prefix": "S_LOG_CRITICAL",
"scope": "php",
"body": [
"/**",
"* Logger",
"* ",
"* Logs something: LEVEL, TYPE, MESSAGE",
"* ",
"* LEVELS: INFO, WARNING, ERROR, CRITICAL, OTHER",
"* TYPE: OTHER, CORE, DATABASE, PLUGIN, LOG, OTHER",
"*/",
"Logger::log(LoggerLevels::CRITICAL,LoggerTypes::OTHER,\"$1\");"
],
"description": "Some critical logging!"
},
"S_LOG_OTHER": {
"prefix": "S_LOG_OTHER",
"scope": "php",
"body": [
"/**",
"* Logger",
"* ",
"* Logs something: LEVEL, TYPE, MESSAGE",
"* ",
"* LEVELS: INFO, WARNING, ERROR, CRITICAL, OTHER",
"* TYPE: OTHER, CORE, DATABASE, PLUGIN, LOG, OTHER",
"*/",
"Logger::log(LoggerLevels::OTHER,LoggerTypes::OTHER,\"$1\");"
],
"description": "Some other logging!"
},
"Get translation": {
"prefix": "S_GetLang",
"scope": "php",
Expand Down
Loading

0 comments on commit f7e247e

Please sign in to comment.