Changeset dce72c1 for perl/lib/BarnOwl/Logging.pm
- Timestamp:
- Aug 16, 2017, 12:53:41 PM (8 years ago)
- Branches:
- master
- Children:
- 15b87cc
- Parents:
- 9a34040
- git-author:
- Jason Gross <jgross@mit.edu> (02/16/13 23:46:21)
- git-committer:
- Jason Gross <jasongross9@gmail.com> (08/16/17 12:53:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/BarnOwl/Logging.pm
r03fbf66 rdce72c1 89 89 . "is selected both incoming and outgoing messages are\n" 90 90 . "logged." 91 }); 92 93 BarnOwl::new_variable_string('logbasepath', 94 { 95 default => '~/zlog', 96 validsettings => '<path>', 97 summary => 'path for logging non-zephyr messages', 98 description => "Specifies a directory which must exist.\n" 99 . "Each non-zephyr protocol gets its own subdirectory in\n" 100 . "logbasepath, and messages get logged there." 91 101 }); 92 102 … … 141 151 This method calls C<log_filenames> on C<MESSAGE> to determine the list 142 152 of filenames to which C<MESSAGE> gets logged. All filenames are 143 relative to C<MESSAGE->log_ base_path>. If C<MESSAGE->log_to_all_file>153 relative to C<MESSAGE->log_path>. If C<MESSAGE->log_to_all_file> 144 154 returns true, then the filename C<"all"> is appended to the list of 145 155 filenames. … … 153 163 my @filenames = $m->log_filenames; 154 164 push @filenames, 'all' if $m->log_to_all_file; 155 return map { sanitize_filename($m->log_ base_path, $_) } @filenames;165 return map { sanitize_filename($m->log_path, $_) } @filenames; 156 166 } 157 167
Note: See TracChangeset
for help on using the changeset viewer.