patch 9.0.0979: ch_log() text can be hard to find in the log file

Problem:    ch_log() text can be hard to find in the log file.
Solution:   Prepend "ch_log()" to the text.
This commit is contained in:
Bram Moolenaar
2022-12-01 11:02:23 +00:00
parent 3b8c7083b2
commit 4f501171f7
4 changed files with 10 additions and 2 deletions

View File

@ -618,6 +618,9 @@ ch_info({handle}) *ch_info()*
ch_log({msg} [, {handle}]) *ch_log()*
Write String {msg} in the channel log file, if it was opened
with |ch_logfile()|.
The text "ch_log():" is prepended to the message to make clear
it came from this function call and make it easier to find in
the log file.
When {handle} is passed the channel number is used for the
message.
{handle} can be a Channel or a Job that has a Channel. The