Customizing Log Message Formatting in ZennoPoster

Pierre Paul Jacques

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

I'm currently working on customizing the log messages in ZennoPoster and I'm interested in adding background color to log entries, similar to what is possible with Notification Block (where you can select colors like 'Pink' for the message background).

I am looking to replicate this functionality programmatically within C# code, not through the Notification action block. Is there a way to set the background color for log messages using C# in ZennoPoster?

I've tried several methods, but none have worked so far. If anyone has experience with this or can point me to the right function or method to achieve this, I would greatly appreciate it.

Thank you in advance for your help!
 

Pierre Paul Jacques

Активный пользователь
Регистрация
08.10.2023
Сообщения
142
Благодарностей
38
Баллы
28
Hi everyone,
About a year ago, I posted a question about how to emulate the Notification Block in ZennoPoster using C#, and unfortunately, I still haven’t found a solution. I’m hoping someone here might be able to help or provide new insights.The Notification Block (as shown in the screenshot below) allows us to display a customizable popup with options such as:
  • Message: Dynamic text (e.g., {-Variable.Notification-}).
  • Message Level: Info, Warning, or Error.
  • Message Color: Set colors like Red, Green, etc.
  • Show in ZennoPoster: Toggled visibility in ZennoPoster.
  • Output to log only: Option to disable the popup but still log the message.
  • Automatically close after N seconds: Auto-closing functionality.
I’ve been trying to replicate this functionality programmatically in C# but haven’t been successful. I’ve searched through the documentation extensively, including the following areas:
  1. The IZennoPosterProjectModel interface.
  2. Methods like LogicAlert, WebBrowserNotification, or others in IProjectExecutor.
  3. Logging-related methods (SendWarningToLog, SendInfoToLog, etc.).
So far, none of these approaches has worked, and I haven’t found any method or property that matches the options provided by the Notification Block.Does anyone know if it’s possible to fully replicate the Notification Block in C#?

Thank by advance

129541
 

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