Custom Log Color Coding with C# in ZennoPoster

Pierre Paul Jacques

Активный пользователь
Регистрация
08.10.2023
Сообщения
123
Благодарностей
33
Баллы
28
Hello Zenno Friends,

I am currently working on a project in ZennoPoster and I'm trying to figure out if it's possible to use the notification button to customize the colors of log messages through a C# script.

Specifically, I'm looking to set messages with colors like turquoise or other custom colors for enhanced visibility in the logs.
I've been looking into the ILogOptions interface, but i didn't find on how to implement these specific color settings.

Does anyone have a code sample or guidance on how to proceed with adding this color customization to the logs?

Thanks in advance for your help and insight!

Best regards,
117405
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 182
Баллы
113
C#:
project.SendToLog("Message", ZennoLab.InterfacesLibrary.Enums.Log.LogType.Info, false, ZennoLab.InterfacesLibrary.Enums.Log.LogColor.Yellow);
 
  • Спасибо
Реакции: Pierre Paul Jacques

Pierre Paul Jacques

Активный пользователь
Регистрация
08.10.2023
Сообщения
123
Благодарностей
33
Баллы
28

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 182
Баллы
113
  • Спасибо
Реакции: Pierre Paul Jacques

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)