Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于LogKit的建议。 #108

Open
itgl-four opened this issue Apr 23, 2023 · 1 comment
Open

关于LogKit的建议。 #108

itgl-four opened this issue Apr 23, 2023 · 1 comment

Comments

@itgl-four
Copy link

使用LogKit的时候总感觉很不方便,后面就没再用了。

可能的原因如下:

  1. 使用习惯,习惯了Debug,每次Log都会打出Debug后才想起来,很不舒服。
  2. 都是靠代码提示写的,一个关键字加Tab就出来了,所以缩短字母的意义不大。

个人建议:

  1. 建议名字可以起类似DebugKit 或者QDebug这种具有各自风格但又满足操作习惯的。
  2. Unity的Log可封装空间不大,但是颜色可以操作一下。 建议有个LogKit.Log(msg, color)函数,msg是消息,color是一个自定义的枚举类储存颜色信息, 函数实现如下 Debug.LogFormat("<color={0}>{1}</color>", msg, color.ToString())
    (或许可以做个链式,一段换一个颜色)
  3. 建议储存个画笔功能,设定颜色后,后续log颜色都是画笔的颜色,直到更改为止。
@liangxiegame
Copy link
Owner

liangxiegame commented Apr 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants