Skip to content

Simple Logger for C#/Unity with Graylog2 adapter

License

Notifications You must be signed in to change notification settings

niklucky/Unilog

Repository files navigation

Unilog

DANGER! Work in progress!

How to use

// Mute every log until Unmute is called
Unilog.Mute();

// Mute every Debug message with LogLevel.Debug
Unilog.Mute(LogLevel.Debug);

// Unmute log level
Unilog.Unmute(LogLevel.Debug).Debug("Unmuted debug");

// Mute every message with tag "test"
Unilog.Mute("test");

// Unmute
Unilog.Unmute("test");

// Different levels of logging
Unilog.Debug("Message");
Unilog.Info("Message");
Unilog.Log("Message");
Unilog.Warning("Message");
Unilog.Error("Message");

// Optional chaining
Unilog.Mute("Test").Mute(LogLevel.Info).Mute(LogLevel.Warning).Debug("Debug message", 1, 2, 2.3);

// Yu can add KeyValue
Unilog.KeyValue("key", 1).KeyValue("key2", "Name").Debug("test");

// KV also could be added globally
Unilog.KeyValueGlobal("service", "game");

About

Simple Logger for C#/Unity with Graylog2 adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages