Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Unity Logger

Log and assert everywhere in your code.

Instalation

Download and put Logger.cs file in root (Assets).

Usage

use log everywhere even in expressions

int x = 5;
x.Log("my x");
if (5+6+y.Log("y")<35)
{
  //do something
}

use log to print single object or multiple objects

"hello".Log();
myObj.Log("My object and some", x, y, d, f);

specify your log type by using LogType

param.Log("Parameter is so big", obj1,obj2, ..., Logger.LogType.Warning);

use assert to for easy debuging it will log and break or throw AssertionException on debug

(x<5).Assert("Assert if x is not less then 5")

//assert if obj is null
SomeMethod(obj.Assert("obj mast be not null"));

About

Log and assert everywhere in your code.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages