Skip to content

A logging tool that will log to file or to console with optional inputs for strings, ints, and floats.

Notifications You must be signed in to change notification settings

ww-csharp-unity/MultiLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

MultiLogger

A logging tool for Unity

To use this script, copy this script to your project and place it on any object that will be live throughout the entire game. This may require a singleton.

Then just call the methods as they are static.

IE: Logger.WriteToLog("test test");

Methods:

WriteToLog(string logMessage) Call this method and pass a $ formatted string by itself to inject that string into the log file on disk.

WriteToConsole(string logMessage) Call this method and pass a $ formatted string by itself to log that formatted string to the Unity console.

WriteToConsole(string optionalMessage = "", int optionalInt = -400, float optionalFloat = -400) Call this method and pass the optional values to log those values to the console.

About

A logging tool that will log to file or to console with optional inputs for strings, ints, and floats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages