Ler em Português do Brasil
The GLogger package allows you to add and object into your hierarchy wich will handle logging messages for you allowing you to turn logging On and Off as well as choosing messages colors.
Checkout the youtube video i've made to explain you how to use it (Pt-BR spoken)
- Open package manager
- Click on plus button and "Add package from git URL"
- Paste https://github.com/indiegabo/GLogger.git and click Add
- Wait for Package manager install package
- Right click on Hierarchy panel and chose GLogger -> GLog
- Choose your colors
- Log a message through code!
GLog.I?.Log("Less boring log message. But still boring");
GLog.I?.Success("Hurray! It is good");
GLog.I?.Warning("Carefull! Something is going bad");
GLog.I?.Danger("Ooops. Not good =/");
Well let me give you some handy snippets so you can tell your code editor how to help you using this in your code
{
"GLog": {
"scope": "csharp",
"prefix": ["glog", "log"],
"body": ["GLog.I?.Log(\\$\"\");"],
"description": "A default GLog message"
},
"Success GLog": {
"scope": "csharp",
"prefix": ["success", "log"],
"body": ["GLog.I?.Success(\\$\"\");"],
"description": "A success GLog message"
},
"Warning GLog": {
"scope": "csharp",
"prefix": ["warning", "log"],
"body": ["GLog.I?.Warning(\\$\"\");"],
"description": "A warning GLog message"
},
"Danger GLog": {
"scope": "csharp",
"prefix": ["danger", "log"],
"body": ["GLog.I?.Danger(\\$\"\");"],
"description": "A danger GLog message"
}
}
For the moment i do not aknowledge other editors or IDEs snippets crafting. If you can help me sending me some so i can improve this document i'll be very very glad!
Huge thanks to GabrielBigardi and RicardoQLG who created packages wich i've modeled to learn how to make my own.