summaryrefslogtreecommitdiff
path: root/doc/dlt_example_user.md
blob: d2f9af616789d6d736a8cb395a79b746ca20df67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
% DLT-EXAMPLE-USER(1)

# NAME

**dlt-example-user** - Console based application for sending a custom dlt message

# SYNOPSIS

**dlt-example-user** \[**-h**\] \[**-g**\] \[**-a**\] \[**-k**\] \[**-d** delay\] \[**-f** filename\] \[**-n** count\] \[**-m** mode\] \[**-l** level\] \[**-A** appID\] \[**-C** contextID\] \[**-t** timeout\] \[**-s** size\] message

# DESCRIPTION

Sends the given message as DLT messages to DLT daemon or prints the raw DLT messages into a local file.

## OPTIONS

-h

: Display a short help text.

-g

: Switch to non-verbose mode (Default: verbose mode).

-a

: Enable local printing of DLT messages (Default: disabled).

-k

: Send marker message.

-d

: Milliseconds to wait between sending messages (Default: 500).

-f

: Use local log file instead of sending to daemon.

-n

: Number of messages to be generated (Default: 10).

-m

: Set log mode 0=off, 1=external, 2=internal, 3=both.

-l

: Set log level, level=-1..6 (Default: 3).

-A

: Set app ID for send message (Default: LOG).

-C

: Set context ID for send message (Default: TEST).

-t

: Set timeout when sending messages at exit, in ms (Default: 10000 = 10sec).

-r

: Send raw data with specified size instead of string.


# EXAMPLES

Send "HelloWorld" with default settings (10 times, every 0.5 seconds) as DLT message to dlt-daemon::

    dlt-example-user HelloWorld

Set app ID to `APP1`, context Id to `TEST` and log level to `error` for send message::

    dlt-example-user -l 2 -A APP1 -C TEST HelloWorld

Send 100 DLT messages every second::

    dlt-example-user -n 100 -d 1000 HelloWorld

# EXIT STATUS

Non zero is returned in case of failure.

# Notes

The default descriptions for application and context registration are used irrespective of the IDs that could be set. App will always register with "Test Application for Logging" and context with "Test Context for Logging".

# AUTHOR

Darian Biastoch (dbiastoch@de.adit-jv.com)

# COPYRIGHT

Copyright (C) 2020 ADIT GmbH. License MPL-2.0: Mozilla Public License version 2.0 <http://mozilla.org/MPL/2.0/>.

# BUGS

See Github issue: <https://github.com/GENIVI/dlt-daemon/issues>

# SEE ALSO

**dlt-daemon(1)**