Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We want to provide you with the latest help content in your language as soon as possible. This page has been translated automatically and may contain grammatical errors or inaccuracies. We want this content to be useful to you. Please let us know at the bottom of this page if this information was helpful.

View the original article in Russian: Окно лога
Panel
panelIconIdatlassian-info
iconpanelIconfalse:info:
titleThis page has been translated automatically
bgColor#E3FCEF

Please read the Terms of Use for Materials on ZennoLab

Table of contents

Expand
titleClick here to expand contents
Table of Contents
minLevel1
maxLevel7
exclude^ОглавлСниС$

...

Description

The log is used to display messages to the user. The message can be of one of three types:

...

Among other things, these three types of messages differ in icons:

...

...

Also, starting from ZennoPoster 7.2.1.0, messages can be assigned a background color

...

Messages are output to the log using the Alert Notification action .

...

What is it used for?

...

If it seems to you that too many messages are being written to the ZennoPoster log, and you would not want to completely delete actions, you can make them appear only in ProjectMaker. To do this, in the Action Alert Notificationyou need to uncheck the "Show in ZennoPoster" checkbox.

...

Expand
titleIf the log window is not displayed

There are cases when the log window is not displayed, although there is a checkbox next to it in the settings (as shown in the screenshot above), indicating that it is enabled. If, after several attempts to enable it, it still does not appear, then you can perform a general reset of the windows settings in ProjectMaker.

ATTENTION! The steps described below will reset the window settings, in other words, if you have customized the program interface for yourself by arranging its windows in a way convenient for you, then all these settings will be deleted and the default value will be set.Π—Π°Ρ…ΠΎΠ΄ΠΈΠΌ

Π² настройки (Π Π΅Π΄Π°ΠΊΡ‚ΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅-Настройки), Π²Ρ‹Π±ΠΈΡ€Π°Π΅ΠΌ Π²ΠΊΠ»Π°Π΄ΠΊΡƒ ΠžΡ‚Π»Π°Π΄ΠΊΠ°ΠΈ Π² самом Π½ΠΈΠ·Ρƒ ΠΎΠΊΠ½Π° ΠΈΡ‰Π΅ΠΌ ΠΊΠ½ΠΎΠΏΠΊΡƒ Π‘Π±Ρ€ΠΎΡΠΈΡ‚ΡŒ ΠΏΠ°Π½Π΅Π»ΠΈGo to the settings (Edit-Settings), select the Debug tab and at the very bottom of the window look for the Reset Panels button.After clicking this button and restarting ProjectMaker, all window settings will be reset, but enabling the log window should work correctly (this method can also be used in case of problems with displaying other program windows).

Image RemovedImage Added

...

Appearance (Standard log)

...

Message display window

...

...

First, the icon corresponding to the type of message

...

is displayed, then the time of the message

...

and the actual text of the message

...

.

Sort by message type and color

...

Using the buttons in this section, you can filter the displayed messages by their type and/or color.

...

Auto-scrolling

...

If this option is enabled, the log window will automatically scroll, thus always showing the most recent message.

...

In the program settings, on the Other tab, you can change the conditions under which auto-scrolling will be disabled.

Auto row height

...

If the message is too large,

...

the line-height will be adjusted

...

to

...

fit it completely. If this option is disabled, then only the top line of this entire message will be displayed.

...

Clear log

...

Using this button, you can clear the window from all messages

...

Buttons .

Double click on an entry in the log

If you double-click on any entry in the log, the focus of the project will shift to the action that left this entry.

...

The buttons from the right block of the window are minimized when the height of the log window decreasesis reduced. To get access to them, you need to click on the corresponding button.

...

Log context menu

When you right-click (right-click) on an entry in the log, a context menu will appear

...

Show action in PM

The project that generated this message will open in ProjectMaker and focus on the action that sent the message.

Copy Action Id

The unique id of the action that sent the message will be saved to the clipboard. Example id is 3e6988d1-9518-4535-a6d2-f0a33420c730.

...

Then you can use this id to search for a project, for more information about searching for a project, see the article Search by project.

Copy message

When you select this item, the text of the message will be saved to the clipboard.

...

Note

The features described below are for advanced users.

...

PorjectMaker and ZennoPoster additionally save logs on the computer in the directory with the installed program, in the Logs folder. This is how the path to this folder C:\Program Files\ZennoLab\RU\ ZennoPoster Pro ZennoPosterPro V7\7.1.6.1\Progs\Logs might look like

Splitting by

...

projects and

...

threads

By default, all logs from all templates are written to one file. This behavior can be changed using C # C# code , which must be placed at the beginning of the template:

Code Block
languagec#
// Redirect ΠŸΠ΅Ρ€Π΅Π½Π°ΠΏΡ€Π°Π²Π»ΡΠ΅ΠΌthe Π»ΠΎΠ³log дляfor Π΄Π°Π½Π½ΠΎΠ³ΠΎthis шаблонаtemplate Π²to ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹ΠΉa separate Ρ„Π°ΠΉΠ»file.
project.LogOptions.LogFile = @ "D: \ log.txt";
// A Дляlog ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎfile ΠΏΠΎΡ‚ΠΎΠΊΠ°will Π±ΡƒΠ΄Π΅Ρ‚be созданcreated свойfor Π»ΠΎΠ³each Ρ„Π°ΠΉΠ»thread.
// К ΠΈΠΌΠ΅Π½ΠΈ Ρ„Π°ΠΉΠ»ΠΎΠ²The names of the files (Π²in нашСмour случаСcase, log) Π±ΡƒΠ΄ΡƒΡ‚will be ΠΏΡ€ΠΈΠΏΠΈΡΡ‹Π²Π°Ρ‚ΡŒΡΡassigned ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹thread ΠΏΠΎΡ‚ΠΎΠΊΠΎΠ²IDs.
project.LogOptions.SplitLogByThread = true;

Extended version of the log

Π’ настройках ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ ΠΌΠΎΠΆΠ½ΠΎ Π²ΠΊΠ»ΡŽΡ‡ΠΈΡ‚ΡŒ Π Π°ΡΡˆΠΈΡ€Π΅Π½Π½Ρ‹ΠΉ Π»ΠΎΠ³. Для этого Π² Π²Π΅Ρ€Ρ…Π½Π΅ΠΌ мСню ΠΊΠ»ΠΈΠΊΠ°Π΅ΠΌ ΠΏΠΎ Π Π΅Π΄Π°ΠΊΡ‚ΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ Π·Π°Ρ‚Π΅ΠΌ Настройки, послС Π²Ρ‹Π±ΠΈΡ€Π°Π΅ΠΌ Π²ΠΊΠ»Π°Π΄ΠΊΡƒ ΠžΡ‚Π»Π°Π΄ΠΊΠ° ΠΈ ΠΈΡ‰Π΅ΠΌ ΠΏΡƒΠ½ΠΊΡ‚ Π Π°ΡΡˆΠΈΡ€Π΅Π½Π½Ρ‹ΠΉ Π²Π°Ρ€ΠΈΠ°Π½Ρ‚ ΠΎΠΊΠ½Π° Π»ΠΎΠ³Π°In the program settings, you can enable the Extended log. To do this, in the top menu, click on Edit, then Settings, then select the Debug tab and look for the Extended window for log. For the changes to take effect, you must restart ProjectMaker.

...

When you enable extended logging in ProjectMaker, it will automatically be enabled in ZennoPoster.

The appearance of the extended log window

...

  • date filters will be available for the Time column (you can display messages for a specific day, between two dates, before or after a specified date, and many other filters. Or you can create a complex filter with several conditions)

Expand
titleScreenshots
Image Removed

Image Removed

Image Removed

Image Added


Image Added
Image Added
  • text filters will be available for the Messages column and for the Nameless one .

Expand
titleScreenshots and filter translations

Equals - String equal to filter (exact match)

Does Not Equal - NOT equal to filter

Begins With - Starts with ...

Ends With - Ends With ...

Contains - Contains

Does Not Contain - Does Not Contain

Is Blank - The line is empty

Is Not Blank - NOT an empty string

Custom - Composite filter.

...

Right-clicking on the title will open a context menu with additional functions: grouping by the selected column, hiding columns. selection of width. Among them, we are now more interested in Auto Filter and Filter Designer.

Auto Filter

...

This allows you to quickly create a simple message filter.When activated, an additional line (1) appears under the headings, in which the type of filter is set and you can enter the necessary characters and\or words according to which the displayed messages will be selected. The screenshot below shows the line that appears and a simple filtering is created (2) - only those lines that contain the β€œo” symbol are displayed (the search is performed by the Message column). Each line, on the left, has an icon, after clicking on which a context menu (3) appears with a choice of the type of filtration. The types of filters and the entered values depend on the type of the column: for the Time column, these are comparison operators (greater than ->, less than - <, equal to - =, etc.) and dates; for Messages - text search (Contains, does not contain, starts with, etc.) plus comparison operators.

...

Filter Builder - similar to an auto filter, but allows you to create much more complex filtering conditions.

...

  1. When you click on this button, you can add a new condition, a group of conditions, or completely clear all search conditions. It is also necessary to define a logical connection between the conditions here:

    1. AND - meet ALL conditions

    2. OR - satisfy at least one of the conditions

    3. NOT AND - DO NOT meet ALL conditions

    4. NOT OR - DO NOT satisfy at least one of the conditions

  2. Using this button, you can easily add an additional condition.

  3. The column to which the filter is applied is indicated in blue in square brackets (in the screenshot, in the last condition, empty brackets are the Untitled column. Although

...

  1. it does not have

...

  1. its own name, you can filter by

...

  1. it).

  2. The filter type is displayed in green.

  3. Black text is user input for the filter.

  4. This button makes it easy to remove the filter.

How to write in an unnamed column (and why you might need it)?

Unfortunately, it is impossible to write to this column using the standard Alert Notification action (at the time of this writing, the latest version of the program is 7.1.6.1). To do this, you must use the Custom C # C# code cube and have minimal knowledge of working with C # C# code.

There are three four methods for displaying messages in the log. - project.SendInfoToLog, project.SendWarningToLog, project.SendErrorToLog (using this method, you can set the color of messages). Each of these methods has an overload (the work in all three the project.SendInfoToLog, project.SendWarningToLog, project.SendErrorToLog methods is identical, so here we will only consider project.SendInfoToLog)

Code Block
languagec#
// ΠŸΠ΅Ρ€Π²Ρ‹ΠΉ Π²Π°Ρ€ΠΈΠ°Π½Ρ‚ ΠΌΠ΅Ρ‚ΠΎΠ΄Π° The first version of the method.
// АргумСнтыArguments:
// 1ΠΉ1st - строка, которая вывСдСтся Π² ΠΊΠΎΠ»ΠΎΠ½ΠΊΠ΅ "Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅"
// 2ΠΉ the line that will be displayed in the "Message" column
// 2nd - bool, Π½Π°Π΄ΠΎ Π»ΠΈ Π²Ρ‹Π²ΠΎΠ΄ΠΈΡ‚ΡŒ это сообщСниС Π² Π»ΠΎΠ³ whether it is necessary to display this message in the ZennoPoster log
project.SendInfoToLog ("Message", true);

// Π’Ρ‚ΠΎΡ€ΠΎΠΉSecond Π²Π°Ρ€ΠΈΠ°Π½Ρ‚option:
// АргумСнтыArguments:
// 1ΠΉ1st - строка, которая вывСдСтся Π² ΠΊΠΎΠ»ΠΎΠ½ΠΊΠ΅ "Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅"
// 2ΠΉ - строка, данная строка появится Π²  бСзымянной ΠΊΠΎΠ»ΠΎΠ½ΠΊΠ΅ the line that will be displayed in the "Message" column
// 2nd - row, this row will appear in an unnamed column.
// 3ΠΉ3rd - bool, Π½Π°Π΄ΠΎ Π»ΠΈ Π²Ρ‹Π²ΠΎΠ΄ΠΈΡ‚ΡŒ это сообщСниС Π² Π»ΠΎΠ³ ZennoPosterwhether it is necessary to display this message in the ZennoPoster log
project.SendInfoToLog ("Message", "Way", true);

This is what how the call to this code looks like:

...

  • in multithreaded work, you can enter the account name in the Untitled column, and the action that this account is currently performing in Messages . If the need arises, you can either group messages by this column (this is done by right-clicking on the title and selecting the appropriate option), or set up a filter.

  • it may be necessary to write large templates that perform execute many functions in one pass, for example - registration, filling out a profile, searching for a product, parsing and processing goods, publishing processed data (and all this is one template execution). Each of the described parts can contain many actions. So when logging into the Nameless column, you can write that part of the template in which the execution is now located, and write a specific action in Messages .

...