#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
my %opts;
use Getopt::Long;
GetOptions( \%opts,
- "help|h", "dryrun", "time=i", "epoch=i", "all"
+ "help|h", "dryrun", "time=i", "epoch=i", "all", "log=s"
);
if ($opts{'help'}) {
# Load the config file
RT::LoadConfig();
+# adjust logging to the screen according to options
+RT->Config->Set( LogToSTDERR => $opts{log} ) if $opts{log};
+
# Connect to the database and get RT::SystemUser and RT::Nobody loaded
RT::Init();
Ignore subscription frequency when considering each dashboard (should only be
used with --dryrun for testing and debugging)
+=item --log LEVEL
+
+Adjust LogToSTDERR config option
+
=back
=cut