Skip to content

Commit 9021d79

Browse files
authored
Update README.md
1 parent eff2418 commit 9021d79

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ A custom logger for Unity with custom categories and logs only available on Edit
2929
## 🖥️ How It Works
3030
There's a Console class, which basically serves as a wrapper of Unity's Debug class for logs. Each log type (info, warning, error) has it's own custom color and you can decide to define a category for each one (which will appear in bold in front).
3131

32-
This lets you define custom categories on the fly, with no need to maintain any Enums or Scriptable Objects. The best approach for me, would be to have a static class with all your custom category const strings.
32+
Furthermore, this system lets you define custom categories on the fly, with no need to maintain any Enums or Scriptable Objects. Just pass in the category before the log message and whoala!
3333

3434
### Example Usage:
3535
```csharp
@@ -54,15 +54,19 @@ private void Awake()
5454
Console.LogException("Analytics", new NullReferenceException());
5555
}
5656
```
57+
The best approach for me, would be to have a static class with all your custom category const strings (to avoid harcoded strings!).
58+
5759
### Output:
5860
<p align="center">
5961
<img src="https://github.com/JoanStinson/UnityLoggerExtended/blob/main/output.PNG">
6062
</p>
6163

62-
### Faster Category Searcher
63-
64+
### Fast Log Filtering:
65+
<p align="center">
66+
<img src="https://github.com/JoanStinson/UnityLoggerExtended/blob/main/search.gif">
67+
</p>
6468

65-
## 🖥️ How To Disable Logs on Release Builds
69+
## 📵 How To Disable Logs on Release Builds
6670
To disable Unity Logs on Release Builds and have them be available only on the Editor and Development Builds, you can do it this way:
6771
```csharp
6872
private void Awake()

0 commit comments

Comments
 (0)