You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/log-files.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,24 +17,24 @@ file is copied to the install directory for future reference.
17
17
18
18
By default, the application log file is copied to a subdirectory of the
19
19
installation prefix named `easybuild`, and has a filename like
20
-
`easybuild-HPL-2.0-20141103.104412.log` for example, which corresponds
20
+
`easybuild-WRF-4.4.1-20230426.143346.log` for example, which corresponds
21
21
to the filename template
22
22
`easybuild-%(name)s-%(version)s-%(date)s.%(time)s.log`. This aspect can
23
23
be tweaked via the `--logfile-format` configuration option.
24
24
25
25
Example:
26
26
27
27
```console
28
-
$ eb HPL-2.0-goolf-1.4.10.eb
29
-
== temporary log file in case of crash /tmp/easybuild-rHHgBu/easybuild-XD0Ae_.log
28
+
$ eb WRF-4.4.1-foss-2022b-dmpar.eb
29
+
== Temporary log file in case of crash /tmp/eb-1zbqix6e/easybuild-1ixy86r2.log
30
30
[...]
31
-
== building and installing HPL/2.0-goolf-1.4.10...
31
+
== building and installing WRF/4.4.1-foss-2022b-dmpar...
32
32
[...]
33
33
== COMPLETED: Installation ended successfully
34
-
== Results of the build can be found in the log file /home/example/.local/easybuild/software/HPL/2.0-goolf-1.4.10/easybuild/easybuild-HPL-2.0-20141103.104412.log
34
+
== Results of the build can be found in the log file(s) /home/example/.local/easybuild/software/WRF/4.4.1-foss-2022b-dmpar/easybuild/easybuild-WRF-4.4.1-20230531.181321.log
35
35
== Build succeeded for 1 out of 1
36
-
== temporary log file /tmp/easybuild-rHHgBu/easybuild-XD0Ae_.log has been removed.
37
-
== temporary directory /tmp/easybuild-rHHgBu has been removed.
36
+
== temporary log file /tmp/eb-1zbqix6e/easybuild-1ixy86r2.log* has been removed.
37
+
== temporary directory /tmp/eb-1zbqix6e has been removed.
38
38
```
39
39
40
40
!!! note
@@ -63,16 +63,16 @@ Each log message as emitted by EasyBuild follows a well-defined format.
63
63
Example:
64
64
65
65
```console
66
-
== 2014-11-03 13:34:31,906 main.EB_HPL INFO This is EasyBuild 1.15.2 (framework: 1.15.2, easyblocks: 1.15.2) on host example.
66
+
== 2023-05-31 16:11:21,044 easyblock.py:313 INFO This is EasyBuild 4.7.3 (framework: 4.7.3, easyblocks: 4.7.3) on host example.
67
67
```
68
68
69
69
Each log line consists of the following parts:
70
70
71
71
- a prefix label `==`, which is useful to discriminate between
72
72
EasyBuild log messages and the output of executed shell commands;
73
-
- date and time information (e.g., `2014-11-03 13:34:31,906`);
73
+
- date and time information (e.g., `2023-05-31 16:11:21,044`);
74
74
- the Python module/class/function that is responsible for the log
75
-
message (e.g., `main.EB_HPL`);
75
+
message (e.g., `easyblock.py:313`);
76
76
- the log level (e.g., `INFO`);
77
77
- and a string with the actual log message at the end
78
78
@@ -88,10 +88,10 @@ For each step performed in the build and installation process,
88
88
corresponding log messages is emitted. For example:
89
89
90
90
```console
91
-
== 2014-11-03 13:34:48,816 main.EB_HPL INFO configuring...
92
-
== 2014-11-03 13:34:48,817 main.EB_HPL INFO Starting configure step
91
+
== 2023-05-31 16:11:44,977 build_log.py:267 INFO configuring...
92
+
== 2023-05-31 16:11:44,981 easyblock.py:3926 INFO Starting configure step
93
93
[...]
94
-
== 2014-11-03 13:34:48,823 main.EB_HPL INFO Running method configure_step part of step configure
94
+
== 2023-05-31 16:11:44,982 easyblock.py:3934 INFO Running method configure_step part of step configure
95
95
```
96
96
97
97
This allows you to navigate a log file step by step, for example using
@@ -104,9 +104,10 @@ command line, the location where the command was executed and the
== 2014-11-03 13:34:48,823 main.run DEBUG run_cmd: Command output will be logged to /tmp/easybuild-W85p4r/easybuild-run_cmd-XoJwMY.log
109
-
== 2014-11-03 13:34:48,849 main.run INFO cmd "/bin/bash make_generic" exited with exitcode 0 and output:
107
+
== 2023-05-31 18:59:24,222 run.py:176 DEBUG run_cmd: Output of "/home/example/.local/easybuild/software/WRF/4.4.1-foss-2022b-dmpar/WRF-4.4.1/compile -j 8 wrf" will be logged to /tmp/eb-1zbqix6e/easybuild-run_cmd-ueqo5bn0.log
0 commit comments