logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <andyphillips...@gmail.com>
Subject Issue with HTMLLayout not working
Date Tue, 25 Mar 2014 17:23:19 GMT
I am hoping someone can help me here, seem to be stuck.   Love the product, great work!

I have set up the following configuration, which i would like everything on the console and
only specific domain in an html file.   The html file is created, but it is not what i expect
to see.  It looks like it is not using HTML layout rather the counsel pattern layout.   Can
i provide a different layout for different appenders?  Any help to what i am doing wrong would
be greatly appreciated.    Below are my configuration file and the output file:

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="ALL">
    <Appenders>
        <RollingRandomAccessFile name="RollingRandomAccessFile" fileName="logs/app.html"
                                 filePattern="logs/app-%d{MM-dd-yyyy}-%i.html.gz">

            <HTMLLayout title="HDScoresData Log File"/>
            <!-- <JSONLayout complete="true"/> -->

            <Policies>
                <TimeBasedTriggeringPolicy interval="14"/>
                <!-- <OnStartupTriggeringPolicy /> -->
            </Policies>
            <DefaultRolloverStrategy max="20"/>
        </RollingRandomAccessFile>

        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
        </Console>
    </Appenders>

    <Loggers>
        <Logger name="com.hdscores.data" level="INFO">
            <AppenderRef ref="RollingRandomAccessFile"/>
        </Logger>
        <Root level="INFO">
            <AppenderRef ref="Console"/>
        </Root>
    </Loggers>

</Configuration>


Output file:
6113 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.scheduler.InspectionBotSchedulerListener
Registering bots with scheduler 6329 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.fl.FLInspectionBot
Registered with scheduler 6334 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.mo.CityOfSaintLouisMOInspectionBot
Registered with scheduler 6343 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.nc.BuncombeCountyNCInspectionBot
Registered with scheduler 6346 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.FranklinCountyOHInspectionBot
Registered with scheduler 6349 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.VenturaCountyCAInspectionBot
Registered with scheduler 6353 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ma.CityOfBostonMAInspectionBot
Registered with scheduler 6357 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.MontereyCountyCAInspectionBot
Registered with scheduler 6359 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.mi.GeneseeCountyMIInspectionBot
Registered with scheduler 6361 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.SolanoCountyCAInspectionBot
Registered with scheduler 6363 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ga.CobbDouglasGAInspectionBot
Registered with scheduler 6365 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.wa.KingCountyWAInspectionBot
Registered with scheduler 6367 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.pa.BucksCountyPAInspectionBot
Registered with scheduler 6369 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.SonomaCountyCAInspectionBot
Registered with scheduler 6370 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.nc.UnionCountyNCInspectionBot
Registered with scheduler 6372 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.SummitCountyOHInspectionBot
Registered with scheduler 6374 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.pa.AlleghenyCountyPAInspectionBot
Registered with scheduler 6375 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.WoodCountyOHInspectionBot
Registered with scheduler 6376 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ny.ErieCountyNYInspectionBot
Registered with scheduler 6378 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.nc.LenoirCountyNCInspectionBot
Registered with scheduler 6379 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.SantaBarbaraCountyCAInspectionBot
Registered with scheduler 6380 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.SanMateoCountyCAInspectionBot
Registered with scheduler 6382 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.LickingCountyOHInspectionBot
Registered with scheduler 6383 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.wv.JacksonCountyWVInspectionBot
Registered with scheduler 6386 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.co.CityOfDenverCOInspectionBot
Registered with scheduler 6388 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.WarrenCountyOHInspectionBot
Registered with scheduler 6390 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ny.CityOfNewYorkNYInspectionBot
Registered with scheduler 6392 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.dc.DCInspectionBot
Registered with scheduler 6394 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.LosAngelesCountyCAInspectionBot
Registered with scheduler 6397 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ny.NYInspectionBot
Registered with scheduler 6398 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.nv.SouthernNevadaNVInspectionBot
Registered with scheduler 6399 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.SanJoaquinCountyCAInspectionBot
Registered with scheduler 6401 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.wy.CheyenneLaramieWYInspectionBot
Registered with scheduler 6402 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.tn.TNInspectionBot
Registered with scheduler 6403 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.HuronCountyOHInspectionBot
Registered with scheduler 6405 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ga.GAInspectionBot
Registered with scheduler 6406 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.az.YavapaiCountyAZInspectionBot
Registered with scheduler 6407 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.wv.MonongaliaCountyWVInspectionBot
Registered with scheduler 6408 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.mi.BayCountyMIInspectionBot
Registered with scheduler 6410 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ga.GwinnettCountyGAInspectionBot
Registered with scheduler 6412 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.OrangeCountyCAInspectionBot
Registered with scheduler 6413 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.va.VAInspectionBot
Registered with scheduler 6414 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.co.PuebloCountyCOInspectionBot
Registered with scheduler 6416 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.SenecaCountyOHInspectionBot
Registered with scheduler 6417 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.FresnoCountyCAInspectionBot
Registered with scheduler 6418 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.mi.CentralMichiganDistrictMIInspectionBot
Registered with scheduler 6420 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.de.DEInspectionBot
Registered with scheduler 6422 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ri.RIInspectionBot
Registered with scheduler 6424 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ga.DeKalbCountyGAInspectionBot
Registered with scheduler 6425 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.ContraCostaCountyCAInspectionBot
Registered with scheduler 6429 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.SanBernardinoCountyCAInspectionBot
Registered with scheduler 6430 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.nc.WakeCountyNCInspectionBot
Registered with scheduler 6431 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.LosAngelesCountyCALegacyInspectionBot
Registered with scheduler 6433 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ks.KSInspectionBot
Registered with scheduler 6435 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.CityOfSanFranciscoCAInspectionBot
Registered with scheduler 6436 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.nc.CabarrusCountyNCInspectionBot
Registered with scheduler 6437 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.tx.CityOfAustinTXInspectionBot
Registered with scheduler 6439 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.RiversideCountyCAInspectionBot
Registered with scheduler 6441 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.MarinCountyCAInspectionBot
Registered with scheduler 6442 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.CityOfKentOHInspectionBot
Registered with scheduler 6443 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.SanDiegoCountyCAInspectionBot
Registered with scheduler 6445 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.md.MontgomeryCountyMDInspectionBot
Registered with scheduler 6446 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.nc.ForsythCountyNCInspectionBot
Registered with scheduler 6448 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ia.IAInspectionBot
Registered with scheduler 6449 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.CityOfPasadenaCAInspectionBot
Registered with scheduler 6451 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.pa.CityOfPhiladelphiaPAInspectionBot
Registered with scheduler 6452 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.co.BroomfieldCountyCOInspectionBot
Registered with scheduler 6453 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.LakeCountyOHInspectionBot
Registered with scheduler 6454 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.wv.KanawhaCharlestonWVInspectionBot
Registered with scheduler 6455 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.la.LAInspectionBot
Registered with scheduler 6456 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.oh.ClermontCountyOHInspectionBot
Registered with scheduler 6457 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.il_.CityOfChicagoILInspectionBot
Registered with scheduler 6458 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.pa.MontgomeryCountyPAInspectionBot
Registered with scheduler 6459 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.nc.NCInspectionBot
Registered with scheduler 6460 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.wv.CabellHuntingtonWVInspectionBot
Registered with scheduler 6463 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.SacramentoCountyCAInspectionBot
Registered with scheduler 6465 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.NapaCountyCAInspectionBot
Registered with scheduler 6466 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ca.KernCountyCAInspectionBot
Registered with scheduler 6467 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.wa.WallaWallaCountyWAInspectionBot
Registered with scheduler 6468 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.source.inspection.us.ny.SuffolkCountyNYInspectionBot
Registered with scheduler 6468 RMI TCP Connection(2)-127.0.0.1 INFO com.hdscores.data.scheduler.GeocodingSchedulerListener
Registering geocoding job with scheduler


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message