Skip to content

Simple logging library that allows to log from C# and/or from C++/CXX

Notifications You must be signed in to change notification settings

WallyCZ/LoggerWinRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LoggerWinRT

Simple logging library that allows to log from C# and/or from C++/CXX

Currently can only log to debug output or to file.

Initialization example from C#:

#if DEBUG
      Wally.Utils.DebugOutputTarget debugOutTarget = new Wally.Utils.DebugOutputTarget();

      Wally.Utils.LogTargetManager.AddLogTarget(debugOutTarget);
#endif

      Wally.Utils.FileOutput fileOutTarget = new Wally.Utils.FileOutput("log.txt", true);

      Wally.Utils.LogTargetManager.AddLogTarget(fileOutTarget);

Then in C# class:

Wally.Utils.Logger logger = Wally.Utils.Logger.GetLogger(typeof(MyClass).FullName);
logger.Info("Test ");

About

Simple logging library that allows to log from C# and/or from C++/CXX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published