Function EN Version 1.90

@LogReport

Debugging Float List Misc NUMBER RichText Text TimeDate

Syntax

@LogReport(VAR1);
@LogReport(VAR1;OPTIONS2);
@LogReport(VAR1;OPTIONS2;STYLE3);

Description

Outputs the contents of the variable VAR1 to the API log and on the server console. With FN OPTIONS2 the detailed behavior of the @Function can be defined.
FNLIST STYLE3 specifies the font, options, color and size of the @LogReport output.

OPTIONS2:
0001 @LogReport is executed.
0002 No time/date is placed before the message.
0004 The message is output only on the server console.
0008 The segments of a VSTACKHUGE data type are also output.

IMPORTANT: Bit 1 must always be set in order to produce output. To output a log report without time/date, add 1 and 2 and pass 3 as the argument.

STYLE3:
1.   StyleDefinitionNumber
2.   Font
3.   Size
4.   options
5.   Color

1. StyleDefinitionNumber:
Reserved

2. Font:
0   Times Roman
1   Helvetica
4   Courier

3. Size:
0-255

4. options (add values to combine):
0   Normal
1   Bold
2   Italic
4   Underlined
8   Strikethrough
16   Superscript
32   Subscript

5. Color:
0   Black   
1   White
2   Red
3   Light green
4   Blue
5   Magenta
6   Yellow
7   Cyan
8   Brown
9   Dark green
10   Dark blue
11   Violet
12   Khaki
13   Dark cyan
14   Gray

Example: @LogReport(VAR1)

VAR1:="TEST";
@LogReport(VAR1);

outputs:
XX.XX.XX XX.XX.XX TEST

(XX.XX.XX XX.XX.XX stands for the date and time in the respective server format.)

Example: @LogReport(VAR1;OPTIONS2)

VAR1:="TEST";
OPTIONS2:=3;
@LogReport(VAR1;OPTIONS2);

outputs:
TEST

Note : This text was machine-translated and may contain inaccuracies.