needle-console icon indicating copy to clipboard operation
needle-console copied to clipboard

[Support Unity Logging]

Open aprius opened this issue 1 year ago • 7 comments

The Logging package is a versatile and highly configurable structured asynchronous logging solution. In addition to what you would expect from a traditional logging package (level, timestamp, stacktrace), it contains various ways to stream and record the logs such as StdOut, text or JSON files, DebugLog, and your own custom implementation. You can also individually or collectively configure these logs.

https://docs.unity3d.com/Packages/[email protected]/manual/index.html

It can be used to replace the default Debug.Log.

aprius avatar Jun 19 '23 06:06 aprius

You mean you'd like to forward the logs to the Unity logging package?

How would you imagine the support being integrated (e.g. do you select a filter for which the logs are then piped to a text file?)

marwie avatar Jun 19 '23 07:06 marwie

I thought that apart from the extended logging to the file it would still work like the regular log existing in the editor?.

Because I still see the log on console and not highlighted by needle console.

If it was my mistake, I sincerely apologize

aprius avatar Jun 19 '23 08:06 aprius

The Unity logs are already logged to a file by default image

What do you mean by Because I still see the log on console and not highlighted by needle console. ?

marwie avatar Jun 19 '23 09:06 marwie

Log.Info(string message);

stack trace in console not affect by hight light setting of needle console it still same normal log

aprius avatar Jun 19 '23 09:06 aprius

What is Log.info ? Which namespace - is that the Logging package?

Can you show a screenshot?

marwie avatar Jun 19 '23 09:06 marwie

Well it's from the Logging package. sorry I don't have the test snapshot from Log.Info right now, I'll try again and send it to you later

aprius avatar Jun 21 '23 06:06 aprius

Ah I guess I'm starting to understand what you're asking :) You want to have the same kind of highlighting when logging via Log.Info (the Logging package) as you get when using Debug.Log for example, correct?

marwie avatar Jun 21 '23 08:06 marwie