Cysharp / ZLogger

Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging.
MIT License
1.25k stars 88 forks source link

The Unity logger does not allow to provide a context object #45

Closed VacuumBreather closed 3 years ago

VacuumBreather commented 3 years ago

Unity's Debug.Log methods allow the passing of a context GameObject. Whenever such a log message is clicked the appropriate object in the scene hierarchy is highlighted. The current implementation of the Unity logger in ZLogger does provide and API to pass such a context.

HitCache commented 3 years ago

+1 it would be very useful to have this please

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

HitCache commented 2 years ago

Commenting to reopen, feels pretty important.

hadashiA commented 1 year ago

Unfortunately, it seems difficult to support.

Note:. In ZLogger, the parameters passed to the logger are held by generics that exist for each number of parameters. Therefore, there is no way to transparently scan parameters on the UnityDebugLogProcessor side.