SpaceMadness / lunar-unity-console

High-performance Unity iOS/Android logger built with native platform UI
https://www.assetstore.unity3d.com/en/#!/content/43800
Other
833 stars 112 forks source link

No time stamps on logs? #189

Open diegoleao opened 3 years ago

diegoleao commented 3 years ago

We're using Lunar Console to track bugs on a client, but we don't know when the log happened, so it makes things very difficult to track.

I searched in lunar console documentation, but didn't found anything about timestamps.

Is there an option on the free or pro versions to enable them?

weeeBox commented 3 years ago

No at this moment. Do you need them in the console window or in the report?

diegoleao commented 3 years ago

In both, because the client sometimes send us prints, and sometimes use the copy/mail functions, and we can't enforce either :\

If it is not asking too much, can you either show me where to put the timestamp in the code, or post a patch? For a console app, having timestamps is a major improvement, I think this will make it much more complete.

weeeBox commented 3 years ago

The easiest approach would be to add a timestamp to each log statement before it's sent to the native code: https://github.com/SpaceMadness/lunar-unity-console/blob/master/Project/Assets/LunarConsole/Scripts/LunarConsole.cs#L617. I'll try to prepare a patch release until the end of the week.

diegoleao commented 3 years ago

Ok! I'll do that, thank you for patching it and for the prompt response!