···103103104104Just check [this out](/common-test-example/simple/index.html). This is example report
105105generated by the Common Test. As you can see it contains a lot of information in
106106-quite readable format. Not only it contains informations about current run, but
106106+quite readable format. Not only it contains information about current run, but
107107all previous runs as well, which is really handy when tracking regressions.
108108109109-But can we store even more informations there? Yes, as CT includes simple
110110-logging facility it is completely possible to log your own informations during
111111-tests, for example, lets modify our test to log some informations:
109109+But can we store even more information there? Yes, as CT includes simple
110110+logging facility it is completely possible to log your own information during
111111+tests, for example, lets modify our test to log some information:
112112113113```erlang
114114test_function_name(_Config) ->
···116116 2 = 1 + 1.
117117```
118118119119-Now when we run tests again, then we will see more informations (even coloured)
119119+Now when we run tests again, then we will see more information (even coloured)
120120in [our test log](/common-test-example/log/ct_run.ct@NiunioBook.2019-07-16_11.03.21/common-test-example.log.logs/run.2019-07-16_11.03.22/example_suite.test_function_name.html):
121121122122
+1-1
content/post/log-all-the-things.md
···308308)
309309```
310310311311-As we can see there, the report contains informations like:
311311+As we can see there, the report contains information like:
312312313313- `:label` - that describes type of the event
314314- `:report` - content of the "main" event
+2-2
content/post/who-watches-watchmen-i.md
···238238239239systemd supports the second approach via [`sd_notify`][sd_notify]. The approach
240240there is simple - we have `NOTIFY_SOCKET` environment variable that contain path
241241-to the Unix datagram socket, that we can use to send informations about state of
241241+to the Unix datagram socket, that we can use to send information about state of
242242our application. This socket accept set of different messages, but right now,
243243for our purposes, we will focus only on few of them:
244244245245- `READY=1` - marks our service as ready, aka it is ready to do its work (for
246246 example accept incoming HTTP connections in our example). It need to be sent
247247- withing given timespan after start of the VM, otherwise the process will be
247247+ within given timespan after start of the VM, otherwise the process will be
248248 killed and possibly restarted
249249- `STATUS=name` - sets status of our application that can be checked via
250250 `systemctl status hello.service`, this allows us to have better insight into