What is Slog?
Slog – Simple Logger is a simple, efficient and lightweight script extension for the Unity Logger. The goal of the script is to allow the developer control over which behaviors can send log messages. Usage is so simple – you’ll wonder why this wasn’t built into Unity. You still call the same Log functions, you just call them differently.
Features
- Easy script-based access to Logger.
- Per-behavior Log controls.
- Thoroughly documented.
- Designed with KISS principles.
- Light-weight, portable and versatile code which ideal for use in multiple projects.
- Written by a Gamer, for Gamers.
Usage
- Extend your behaviors from SlogBehaviour.
- Call inherited functions like Log() and LogWarningAlways().
Example
public class SlogDemoBehaviour : SlogBehaviour {
private void Start() {
LogAlways(gameObject.name + "started. Because we are using the LogAlways channel, this comment will always be shown.");
}
private void Update() {
Log(gameObject.name + "has an annoying update comment that we probably only need some of the time.");
}
}
Resources
Slog on the Web
Dedicated Support Forum for Slog
Purchase Slog on the Unity Store
Slog FAQ
User Manual
API Documentation
Contact
I have set up a Dedicated Support Forum. Alternatively, you can leave a post on this thread or contact me via PM. Also you can email me at contact@rancid1.com.
Thanks for reading.