Problem discovered.... --- pf2010/bin/pfcmd_vlan 2010/07/07 21:26:56 1 +++ pf2010/bin/pfcmd_vlan 2010/08/02 20:16:16 59 @@ -215,12 +215,13 @@ } else { $logLevel = $TRACE; } -Log::Log4perl->easy_init( - { level => $logLevel, - layout => '%d (%r) %M%n %m %n' - } -); -my $logger = Log::Log4perl->get_logger(''); +#Log::Log4perl->easy_init( +# { level => $logLevel, +# layout => '%d (%r) %M%n %m %n' +# } +#); +Log::Log4perl->init("/usr/local/pf/conf/log.conf"); +my $logger = Log::Log4perl->get_logger('pfcmd_vlan');
my $switchFactory = new pf::SwitchFactory( -configFile => INSTALL_DIR . '/conf/switches.conf' ); The easy_init doesn't seem to satisfy the needs to get everything logging to the correct place. Should be cleaned up a little bit, but it's working now. -Josh On 8/2/10 11:50 AM, Josh Ward wrote: > Is anyone else seeing a lack of logging from any of the > pf/SNMP/SwitchVendor/XXX.pm modules? > > I'm trying to develop a new one for some tricky radius stuff we're doing > here.. I have my logging level at a trace and I'm not seeing logging > message from any of the existing files or the new one I'm writing. > > I'm not overly familiar with the Log4perl stuff, so I may be missing > something obvious. > > Just wondered if I was the only one seeing this or if others had run in > to this. > > I'm currently developing on the 1.10 trunk release. > > -Josh > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Packetfence-devel mailing list > Packetfence-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/packetfence-devel ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Packetfence-devel mailing list Packetfence-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/packetfence-devel