diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-04-12 15:09:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-12 15:09:23 +0100 |
commit | c9a9a0ac1ec3b985d38c01ddf9f0ba2f15386f34 (patch) | |
tree | fb5fdcc958f7d680b56c8a096f033afd5874fef7 /runtime/doc/starting.txt | |
parent | 60895f3e36def9beb7d5463e792e5154ad9a7a0a (diff) |
patch 8.2.4742: there is no way to start logging very early in startupv8.2.4742
Problem: There is no way to start logging very early in startup.
Solution: Add the --log argument. Include the date in the start message in
the log file. Avoid a duplicate message when forking. Log an
executed shell command.
Diffstat (limited to 'runtime/doc/starting.txt')
-rw-r--r-- | runtime/doc/starting.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index 16004412ad..9a4014b045 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -344,6 +344,12 @@ a slash. Thus "-R" means recovery and "-/R" readonly. Example: > vim -V20vimlog foobar < +--log {filename} *--log* + Start logging and write entries to {filename}. + This works like calling `ch_logfile({filename}, 'a')` very + early during startup. + {only available with the +channel feature} + *-D* -D Debugging. Go to debugging mode when executing the first command from a script. |debug-mode| @@ -564,6 +570,7 @@ a slash. Thus "-R" means recovery and "-/R" readonly. {scriptout} cannot start with a digit. If you want to record what is typed in a human readable for you can use |ch_logfile()|, It adds "raw key input" lines. + Also see |--log|. *-W* -W {scriptout} Like -w, but do not append, overwrite an existing file. |