documented log levels

This commit is contained in:
hjp 2010-04-24 20:23:21 +00:00
parent 4aa78b8530
commit 28745ebffa
1 changed files with 5 additions and 0 deletions

View File

@ -368,6 +368,11 @@ sub name2gid {
}
}
# currently used log levels:
# 0 - fatal error, backup failed
# 3 - global progress messages, like start and end of a backup, statistics.
# 5 - errors which prevent a file from being backed up
# 10 - progress messages for single files.
sub log {
my ($self, $level, $msg) = @_;
if ($level <= $self->{log_level}) {