summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.h
diff options
context:
space:
mode:
authorLars Karlitski <lars@karlitski.net>2017-10-27 05:10:47 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-10-27 12:10:47 +0900
commitcc25a67e2af21833f9fef5aba6e16beafa03b0c7 (patch)
tree404ff13bb957e8b462862c465e01d23b9bfe72be /src/shared/logs-show.h
parenta8caf8b251c1f298efc69d0049d53ead2bc98d57 (diff)
downloadsystemd-cc25a67e2af21833f9fef5aba6e16beafa03b0c7.tar.gz
journalctl: add --output-fields= (#7181)
This option allows restricting the shown fields in the output modes that would normally show all fields. It allows clients that are only interested in a subset of the fields to access those more efficiently. Also, it makes the resulting size of the output more predictable. It has no effect on the various `short` output modes, because those already only show a subset of the fields.
Diffstat (limited to 'src/shared/logs-show.h')
-rw-r--r--src/shared/logs-show.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/logs-show.h b/src/shared/logs-show.h
index 6643440881..3d583b79ef 100644
--- a/src/shared/logs-show.h
+++ b/src/shared/logs-show.h
@@ -37,6 +37,7 @@ int output_journal(
OutputMode mode,
unsigned n_columns,
OutputFlags flags,
+ char **output_fields,
bool *ellipsized);
int add_match_this_boot(sd_journal *j, const char *machine);