forked from OceanDataTools/openrvdas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_logger.yaml
36 lines (31 loc) · 1.13 KB
/
simple_logger.yaml
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
# A sample file for logger/listener/listen.py
##
# To run, type:
#
# logger/listener/listen.py --config_file test/configs/simple_logger.yaml
#
# Dictionary key/value pairs are used as keyword arguments for creating a
# Listener. The keys "reader", "transform" and "writer" are special-cased to
# indicate that the respective entities should be instantiated (recursively,
# if necessary).
# One reader. If we had multiple readers, we'd list them sequentially
# in a list, and they would be executed in parallel.
readers:
class: TextFileReader
kwargs: # initialization kwargs
file_spec: LICENSE
# Timestamp and label. We have two transforms; they are encapsulated
# in a list and will be executed sequentially.
transforms:
- class: TimestampTransform # TimestampTransform has no kwargs
- class: PrefixTransform
kwargs:
prefix: "license:" # enclose in quotes because the ":" can confuse YAML
# Only a single writer. If there were multiple writers, they would be
# called in parallel.
writers:
class: TextFileWriter
# No initialization kwargs; no filename, so TextFileWriter
# will write to stdout
interval: 0.2
check_format: false