Skip to content

Maya Plugin - Add C++ Logging Library #118

@david-cattermole

Description

@david-cattermole

Feature

Logging inside the mmSolver plug-in is handled very simply, with std::out and std::err.

The solver is getting larger, and we need a logging infrastructure to help us save log files to disk for all the different parameters. This will also help debugging, since we get ask users for log files.

After looking at many different C++ loggers, loguru seems to be a good choice for mmSolver.
loguru's license is Public Domain, which is compatible with LGPL (mmSolver).
loguru doesn't seem to be C++11 dependent, which is important because we still officially support Maya 2016 and 2017.
loguru seems simple to use. loguru does not need be compiled into a library to be used (header only or static library).

https://github.com/emilk/loguru

While implementing logging using loguru, if a problem is encountered, we will search for another logging library.

Another alternative library is Google's glog. https://github.com/google/glog

Metadata

Metadata

Labels

core solverRelated to the low-level solver functions.maya pluginMaya API Plug-In (C++)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions