summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-04 22:15:54 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-04 22:15:54 +0100
commit1d97db3d987c05af88c30ad20f537bcf3024f9c1 (patch)
tree2835145bad19eeca6d90bd3360b12f8ffd2f9d4b /runtime
parent327e6dd82235d70f6d5aa33ac8281e7fd79b7381 (diff)
patch 8.2.5056: the channel log only contains some of the raw terminal outputv8.2.5056
Problem: The channel log only contains some of the raw terminal output. Solution: Add the "o" flag to log all terminal output. Use it for "--log".
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/channel.txt9
-rw-r--r--runtime/doc/starting.txt2
2 files changed, 7 insertions, 4 deletions
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt
index 01a9e3695d..6705c59c34 100644
--- a/runtime/doc/channel.txt
+++ b/runtime/doc/channel.txt
@@ -628,15 +628,18 @@ ch_logfile({fname} [, {mode}]) *ch_logfile()*
Start logging channel activity to {fname}.
When {fname} is an empty string: stop logging.
- When {mode} is omitted or "a" append to the file.
- When {mode} is "w" start with an empty file.
+ When {mode} is omitted or contains "a" or is "o" then append
+ to the file.
+ When {mode} contains "w" and not "a" start with an empty file.
+ When {mode} contains "o" then log all terminal output.
+ Otherwise only some interesting terminal output is logged.
Use |ch_log()| to write log messages. The file is flushed
after every message, on Unix you can use "tail -f" to see what
is going on in real time.
To enable the log very early, to see what is received from a
- terminal during startup, use |--log|: >
+ terminal during startup, use |--log| (this uses mode "ao"): >
vim --log logfile
<
This function is not available in the |sandbox|.
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt
index f5b33a8886..ec095a472f 100644
--- a/runtime/doc/starting.txt
+++ b/runtime/doc/starting.txt
@@ -346,7 +346,7 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
<
--log {filename} *--log*
Start logging and write entries to {filename}.
- This works like calling `ch_logfile({filename}, 'a')` very
+ This works like calling `ch_logfile({filename}, 'ao')` very
early during startup.
{only available with the +channel feature}