Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

log::log4perl::config::propertyconfigurator(3pm) [debian man page]

Config::PropertyConfigurator(3pm)			User Contributed Perl Documentation			 Config::PropertyConfigurator(3pm)

NAME
Log::Log4perl::Config::PropertyConfigurator - reads properties file SYNOPSIS
# This class is used internally by Log::Log4perl use Log::Log4perl::Config::PropertyConfigurator; my $conf = Log::Log4perl::Config::PropertyConfigurator->new(); $conf->file("l4p.conf"); $conf->parse(); # will die() on error my $value = $conf->value("log4perl.appender.LOGFILE.filename"); if(defined $value) { printf("The appender's file name is $value "); } else { printf("The appender's file name is not defined. "); } DESCRIPTION
Initializes log4perl from a properties file, stuff like log4j.category.a.b.c.d = WARN, A1 log4j.category.a.b = INFO, A1 It also understands variable substitution, the following configuration is equivalent to the previous one: settings = WARN, A1 log4j.category.a.b.c.d = ${settings} log4j.category.a.b = INFO, A1 SEE ALSO
Log::Log4perl::Config Log::Log4perl::Config::BaseConfigurator Log::Log4perl::Config::DOMConfigurator Log::Log4perl::Config::LDAPConfigurator (tbd!) COPYRIGHT AND LICENSE
Copyright 2002-2009 by Mike Schilli <m@perlmeister.com> and Kevin Goess <cpan@goess.org>. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-07-21 Config::PropertyConfigurator(3pm)

Check Out this Related Man Page

Jifty::Manual::Logging(3pm)				User Contributed Perl Documentation			       Jifty::Manual::Logging(3pm)

NAME
Jifty::Manual::Logging - Using and controlling Jifty's logging system Intro Jifty uses the Log4perl module for logging messages, so you can define your own log4perl config for logging. You can define different behaviour for different log levels. For example, you can send mail to administrator when error occurred, or add color to warning messages that are logged to the terminal. Config from config.yml Various log level config can be set from etc/config.yml or etc/site_config.yml. Example # vim:filetype=conf:et: log4perl.rootLogger = INFO , Screen log4perl.logger.MyApp.MailNotifier = WARN, Mailer log4perl.appender.LOG1 = Log::Log4perl::Appender::File log4perl.appender.LOG1.filename = apache_fastcgi/logs/ log4perl.appender.LOG1.mode = append log4perl.appender.LOG1.layout = Log::Log4perl::Layout::PatternLayout log4perl.appender.LOG1.layout.ConversionPattern = %d %p %m %n log4perl.appender.Mailer = Log::Dispatch::Email::MailSend log4perl.appender.Mailer.to = admin@blah.com log4perl.appender.Mailer.subject = !!ERROR!! log4perl.appender.Mailer.layout = SimpleLayout log4perl.filter.Filter1 = sub { /Plugin/ } log4perl.filter.FilterRule = Log::Log4perl::Filter::Boolean log4perl.filter.FilterRule.logic = Filter1 log4perl.appender.LOG1.Filter = FilterRule log4perl.appender.ScreenColor = Log::Log4perl::Appender::ScreenColoredLevels log4perl.appender.ScreenColor.layout = SimpleLayout log4perl.appender.Screen = Log::Log4perl::Appender::Screen log4perl.appender.Screen.layout = SimpleLayout perl v5.14.2 2010-12-08 Jifty::Manual::Logging(3pm)
Man Page

9 More Discussions You Might Find Interesting

1. Linux

Linux Redhat ES 4.0 - DNS Config Issues

(11 Replies)
Discussion started by: AbhijithS
11 Replies

2. UNIX for Dummies Questions & Answers

Log4j overwriting logs! ..sometimes...

Hey, hoping someone here can help me. I'm using log4j for logging in a Java server. Its using DailyRollingFileAppender and rolls every hour. The reason I'm posting here is that in windows it works fine, but in unix it doesnt. What happens is the logs are logged in a file, lets say 'requests'.... (1 Reply)
Discussion started by: .Chris.
1 Replies

3. UNIX for Dummies Questions & Answers

Is this possible with cronjobs?

Hi there, i've a question about cronjobs. I'm creating a concept for a centralized logging repository using log4j/log4net. Sadly the appenders I want to use (fileappenders) aren't telegram based but need a permanent stream to the repository. Because I can not assure this I want to log these... (6 Replies)
Discussion started by: collatz
6 Replies

4. UNIX for Dummies Questions & Answers

log4j - my unix version

Hi, I am starting to do a log4j framework but with unix shell script. So, this framework, will create the log file, will put all info in there, and will close the log file. He will only work whenever he is called by the father script. Now, I want him to be able to work with different father... (6 Replies)
Discussion started by: pipoca
6 Replies

5. Shell Programming and Scripting

Requesting help to replace a string by my bash script

Hello every1, I need help to replace a string in a file by my bash script. Find: log4j.appender.toLogFile.layout.ConversionPattern= %d %5p (%F:%L) - %m%n= %d %5p (%F:%L) - %m%n Replace: log4j.appender.toLogFile.layout.ConversionPattern= %d %5p (%F:%L) - %m%n I tried by sed, but kept... (7 Replies)
Discussion started by: titanic4u
7 Replies

6. Shell Programming and Scripting

Command needed in linux flavour OS

HI, My requirement as below Log with Error Code: Starting FeedRunner for feed: 200 Product example Items Error FeedRunner for feed: 200 Product example Items Stopping FeedRunner for feed : 200 Product example Items Feed time taken 231743 Log without Error Code: ... (0 Replies)
Discussion started by: Paulwintech
0 Replies

7. Shell Programming and Scripting

Search patterns in multiple logs parallelly.

Hi All, I am starting a service which will redirect its out put into 2 logs say A and B. Now for succesful startup of the service i need to search pattern1 in log A and pattern2 in log B which are writen continuosly. Now my requirement is to find the patterns in the increasing logs A and B... (19 Replies)
Discussion started by: Girish19
19 Replies

8. Shell Programming and Scripting

Need Script to ZIP/SAVE & then DELETE Log file & send a mail conformation for any error

ENVIROMENT Linux: RHEL 6.4 Log Path: /usr/iplanet/servers/https-company/logs Log Format: user.log.03-15-2015 I have log4j log rotation enabled rotating files on a daily basis. The rotated logs are NOT compressed & are taking up too much space. I need a script that will run daily that... (1 Reply)
Discussion started by: admin_job_admin
1 Replies

9. Shell Programming and Scripting

Log4j combining lines to single line

Hi, Our log4j file contents look like this: 2018-11-20T00:06:58,888 INFO ql.Driver: Executing command(queryId=hive_20181120000656_49af4ad0-1d37-4312-872c-a247ed80c181): CREATE TABLE RESULTS.E7014485_ALL_HMS_CAP1 AS SELECT name,dept from employee Where employee='Jeff'... (4 Replies)
Discussion started by: wahi80
4 Replies