needle-tools / needle-console

⚡ Improved Unity Console adding better log and stacktrace readability, log filtering, log hyperlinks and more
86 stars 7 forks source link

[Support Unity Logging] #24

Open aprius opened 1 year ago

aprius commented 1 year ago

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/com.unity.logging@1.0/manual/index.html

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

marwie commented 1 year ago

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?)

aprius commented 1 year ago

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

marwie commented 1 year ago

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. ?

aprius commented 1 year ago

Log.Info(string message);

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

marwie commented 1 year ago

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

Can you show a screenshot?

aprius commented 1 year ago

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

marwie commented 1 year ago

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?