Cant add an entry to log --zennoposter

globalledstore

Пользователь
Регистрация
13.12.2013
Сообщения
40
Благодарностей
4
Баллы
8
Hi,
i want to add add an entry to log zennoposter.
i watched the tutorials at Youtube.com, it helps me a lot.
the tutorial here:
i followed every step in the video. it worked well at project maker, but it have no message at zennoposter.
is there any problems with my C#?

PS:
i had set three variables, message, warning and error.
my C# as below:

var msg = project.Variables["message"].Value;
var warn = project.Variables["warning"].Value;
var err = project.Variables["error"].Value;
project.SendErrorToLog(err,"project EntryTest");
project.SendInfoToLog(msg,"project EntryTest");
project.SendWarningToLog(warn,"project EntryTest");

thank you very much
 

globalledstore

Пользователь
Регистрация
13.12.2013
Сообщения
40
Благодарностей
4
Баллы
8
i am trying to upload my project here, but failed.
can anyone write a sample project to add an entry to log? i think it will help many people. thank you very much.
 

globalledstore

Пользователь
Регистрация
13.12.2013
Сообщения
40
Благодарностей
4
Баллы
8
here is my project. is there a problems with the project? thanks
 

Вложения

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113
Код:
project.SendWarningToLog("SendWarningToLog", "C#", true);
project.SendErrorToLog("SendErrorToLog", "C#", true);
project.SendInfoToLog("SendInfoToLog", "C#", true);
 

globalledstore

Пользователь
Регистрация
13.12.2013
Сообщения
40
Благодарностей
4
Баллы
8

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113
You're welcome)
 

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