## Adjust the process name, start logging
$0 = qq{Bucardo Kid.$self->{extraname} Sync "$syncname"};
my $extra = $sync->{onetimecopy} ? "OTC: $sync->{onetimecopy}" : '';
+ if ($config{log_showsyncname}) {
+ $self->{logprefix} .= " ($syncname)";
+ }
+
$self->glog(qq{New kid, sync "$syncname" alive=$kidsalive Parent=$self->{ctlpid} PID=$$ kicked=$kicked $extra}, LOG_TERSE);
## Store our PID into a file
$fn .= ".$self->{logextension}" if length $self->{logextension};
## If we are writing each process to a separate file,
- ## append the prefix and the PID to the file name
- $fn .= "$self->{logprefix}.$$" if $self->{logseparate};
+ ## append the prefix (first three letters) and the PID to the file name
+ my $tla = substr($self->{logprefix},0,3);
+ $fn .= "$tla.$$" if $self->{logseparate};
open my $fh, '>>', $fn or die qq{Could not append to "$fn": $!\n};
## Turn off buffering on this handle
log_showline|0|Show line number in the log output?
log_showtime|3|Show timestamp in the log output? 0=off 1=seconds since epoch 2=scalar gmtime 3=scalar localtime
log_conflict_file|bucardo_conflict.log|Name of the conflict detail log file
+log_showsyncname|1|Show the name of the sync next to the 'KID' prefix
log_level|NORMAL|How verbose to make the logging. Higher is more verbose.
warning_file|bucardo.warning.log|File containing all log lines starting with "Warning"
\.