Changeset 1210b54 for perl/lib


Ignore:
Timestamp:
Jan 7, 2014, 6:02:21 PM (9 years ago)
Author:
Jason Gross <jgross@mit.edu>
Children:
681ce76
Parents:
023f405
git-author:
Jason Gross <jgross@mit.edu> (07/12/11 19:08:45)
git-committer:
Jason Gross <jgross@mit.edu> (01/07/14 18:02:21)
Message:
Moved the last of the logging-related variables to perl

We seem to have picked logpath as the string variable we test in
tester.c.  Since this is no longer in C, I've replaced it with
personalbell (no particular reason for that choice).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Logging.pm

    r023f405 r1210b54  
    7777                         . "for AIM, zephyr, or other protocols.  If disabled BarnOwl will not print\n"
    7878                         . "login or logout notifications."
     79        });
     80
     81    BarnOwl::new_variable_enum('loggingdirection',
     82        {
     83            default       => 'both',
     84            validsettings => [qw(in out both)],
     85            summary       => "specifies which kind of messages should be logged",
     86            description   => "Can be one of 'both', 'in', or 'out'.  If 'in' is\n"
     87                           . "selected, only incoming messages are logged, if 'out'\n"
     88                           . "is selected only outgoing messages are logged.  If 'both'\n"
     89                           . "is selected both incoming and outgoing messages are\n"
     90                           . "logged."
     91        });
     92
     93    BarnOwl::new_variable_string('logpath',
     94        {
     95            default       => '~/zlog/people',
     96            validsettings => '<path>',
     97            summary       => 'path for logging personal messages',
     98            description   => "Specifies a directory which must exist.\n"
     99                            . "Files will be created in the directory for each sender."
     100        });
     101
     102    BarnOwl::new_variable_string('classlogpath',
     103        {
     104            default       => '~/zlog/class',
     105            validsettings => '<path>',
     106            summary       => 'path for logging class zephyrs',
     107            description   => "Specifies a directory which must exist.\n"
     108                           . "Files will be created in the directory for each class."
    79109        });
    80110}
Note: See TracChangeset for help on using the changeset viewer.