Skip to content

slog-v1 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
28b5a12
json_writer: new routines to create JSON data
jeffhostetler Mar 14, 2018
0224682
structured-logging: design document
jeffhostetler Apr 13, 2018
ae74377
structured-logging: add STRUCTURED_LOGGING=1 to Makefile
jeffhostetler Jun 19, 2018
6cc6a2c
structured-logging: add structured logging framework
jeffhostetler Jun 19, 2018
16b346e
structured-logging: add session-id to log events
jeffhostetler Jun 20, 2018
8e71b14
structured-logging: set sub_command field for branch command
jeffhostetler Jun 20, 2018
37a4792
structured-logging: set sub_command field for checkout command
jeffhostetler Jun 20, 2018
ae9ddd1
structured-logging: t0420 basic tests
jeffhostetler Jun 19, 2018
00d1eae
structured-logging: add detail-event facility
jeffhostetler Jun 21, 2018
286c364
structured-logging: add detail-event for lazy_init_name_hash
jeffhostetler Jun 21, 2018
ae3fb49
structured-logging: add timer facility
jeffhostetler Jun 21, 2018
ea9ec28
structured-logging: add timer around do_read_index
jeffhostetler Jun 21, 2018
d9a494f
structured-logging: add timer around do_write_index
jeffhostetler Jun 21, 2018
6d80034
structured-logging: add timer around wt-status functions
jeffhostetler Jun 21, 2018
0592b36
structured-logging: add timer around preload_index
jeffhostetler Jun 21, 2018
782a149
structured-logging: t0420 tests for timers
jeffhostetler Jun 26, 2018
f19bf20
structured-logging: add aux-data facility
jeffhostetler Jun 21, 2018
3f09ea0
structured-logging: add aux-data for index size
jeffhostetler Jun 21, 2018
76bf16f
structured-logging: add aux-data for size of sparse-checkout file
jeffhostetler Jun 21, 2018
c17dd26
structured-logging: t0420 tests for aux-data
jeffhostetler Jun 26, 2018
65c1403
structured-logging: add structured logging to remote-curl
jeffhostetler Jun 25, 2018
2c8e58d
structured-logging: add detail-events for child processes
jeffhostetler Jun 27, 2018
11c5fc7
structured-logging: add child process classification
jeffhostetler Jun 29, 2018
0de1490
structured-logging: t0420 tests for child process detail events
jeffhostetler Jun 28, 2018
b841de4
structured-logging: t0420 tests for interacitve child_summary
jeffhostetler Jun 29, 2018
9d30cac
structured-logging: add config data facility
jeffhostetler Jun 28, 2018
498b970
gvfs-structured-logging: log gvfs.* config settings
jeffhostetler Jul 27, 2018
81ded92
gvfs-structured-logging: add timer around read_object_process
jeffhostetler Jul 27, 2018
7bdc2e6
gvfs-structured-logging: add aux data for status deserialization
jeffhostetler Jul 31, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3269,6 +3269,39 @@ showbranch.default::
The default set of branches for linkgit:git-show-branch[1].
See linkgit:git-show-branch[1].

slog.path::
(EXPERIMENTAL) Enable structured logging to a file. This must be
an absolute path. (Git must be compiled with STRUCTURED_LOGGING=1.)

slog.pretty::
(EXPERIMENTAL) Pretty-print structured log data when true.
(Git must be compiled with STRUCTURED_LOGGING=1.)

slog.detail::
(EXPERIMENTAL) May be set to a boolean value or a list of comma
separated tokens. Controls which categories of optional "detail"
events are generated. Default to off. This is conceptually
similar to the different GIT_TRACE_<key> values.
+
Detail events are generic events with a context-specific payload. This
may represent a single function call or a section of performance sensitive
code.
+
This is intended to be an extendable facility where new events can easily
be added (possibly only for debugging or performance testing purposes).

slog.timers::
(EXPERIMENTAL) May be set to a boolean value or a list of comma
separated tokens. Controls which categories of SLOG timers are
enabled. Defaults to off. Data for enabled timers is added to
the `cmd_exit` event.

slog.aux::
(EXPERIMENTAL) May be set to a boolean value or a list of
comma separated tokens. Controls which categories of SLOG
"aux" data are enabled. Defaults to off. "Aux" data is added
to the `cmd_exit` event.

splitIndex.maxPercentChange::
When the split index feature is used, this specifies the
percent of entries the split index can contain compared to the
Expand Down
6 changes: 6 additions & 0 deletions Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,12 @@ standard output.
adequate and support for it is likely to be removed in the
foreseeable future (along with the variable).

`GIT_SLOG_PARENT_SID`::
(Experimental) A transient environment variable set by top-level
Git commands and inherited by child Git commands. It contains
a session id that will be written the structured logging output
to help associate child and parent processes.

Discussion[[Discussion]]
------------------------

Expand Down
Loading