mirror of https://github.com/deavmi/gogga.git
Documentation
- Mention the styles available in the `README.md` - Added comments to enum members - Added documentation to alias
This commit is contained in:
parent
a4e17acbd2
commit
69f92a7b2e
|
@ -29,7 +29,9 @@ This should output something like the following:
|
|||
|
||||
![](example.png)
|
||||
|
||||
Various [styles](https://gogga.dpldocs.info/v2.1.14/gogga.transform.GoggaMode.html) are supported which can be set using `mode(GoggaMode)`.
|
||||
|
||||
---
|
||||
|
||||
Or you can also [View the full API](https://gogga.dpldocs.info/v2.1.13/index.html).
|
||||
Or you can also [View the full API](https://gogga.dpldocs.info/v2.1.14/index.html).
|
||||
|
||||
|
|
|
@ -189,7 +189,8 @@ public class GoggaLogger : Logger
|
|||
|
||||
/**
|
||||
* Logs using the default context an arbitrary amount of arguments
|
||||
* specifically setting the context's level to DEBUG
|
||||
* specifically setting the context's level to DEBUG and will
|
||||
* only print if debugging is enabled
|
||||
*
|
||||
* Params:
|
||||
* segments = the arbitrary argumnets (alias sequence)
|
||||
|
@ -234,7 +235,9 @@ public class GoggaLogger : Logger
|
|||
}
|
||||
}
|
||||
|
||||
/* You can also call using `dbg` */
|
||||
/**
|
||||
* Alias for debug_
|
||||
*/
|
||||
public alias dbg = debug_;
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,8 +13,19 @@ import std.conv : to;
|
|||
*/
|
||||
public enum GoggaMode
|
||||
{
|
||||
/**
|
||||
* TwoKTwenty3 is: `[<file>] (<module>:<lineNumber>) <message>`
|
||||
*/
|
||||
TwoKTwenty3,
|
||||
|
||||
/**
|
||||
* Simple mode is just: `[<LEVEL>] <message>`
|
||||
*/
|
||||
SIMPLE,
|
||||
|
||||
/**
|
||||
* Rustacean mode is: `[<LEVEL>] (<filePath>/<functionName>:<lineNumber>) <message>`
|
||||
*/
|
||||
RUSTACEAN
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue