12月 14th, 2008

Tomcatのログファイル名から日? を除ぜ

Posted in Tomcat by admin

 Tomcatのデフォルトログファイル名は、「localhost-YYYY-MM-DD.txt」「catalin_out-YYYY-MM-DD.txt」等、必ず日? が付加されます。ファイル名から日? を除いて出力が出来ないかを調査してみましたが、ソースから再ビルドしない限り無理のようです。(Tomcat6.0でデフォルトのログ出力クラスをjuliからLog4Jに? 更して確認しました)ただし、server.xml内AccessLogValveで設定するアクセスログについては日? を除く事が出来ました。

<Valve className="org.apache.catalina.valves.AccessLogValve"
	directory="logs"
	prefix="tomcat_access"
	suffix="log"
	pattern="common"
	fileDateFormat="."
	resolveHosts="false"/>

日? フォーマット指定のパラメータで「fileDateFormat=”.”」のように「.」を指定する、補 ワザ的なやり方ですが・・・これで「tomcat_access.log」というファイル名で出力されるようになります。

You can leave a comment, or trackback from your own site. RSS 2.0

17 comments

  1. http://privet.su says:

    Thanks in favor of shɑring such a nice idea, pece of writing іs good, thɑts
    why i havе гead it entirely

    Ʀeview my sitte … View website (http://privet.su)

    3月 14th, 2015 at 18:28:35

  2. aes.ac.in says:

    Tote: The tote bag is quite populasr and is often referred
    to as a carry bag. You want to trim them right before you put
    them in the arrangement, and you should put a preservative in the water in order to help keep your arrangement looking nice for longer.
    When you are iin this business, always choose and decide on what our main concentration willl be and how to advertise
    aand reach out to your target market.

    5月 18th, 2015 at 15:50:45

  3. Osvaldo says:

    This page definitely has all the information and facts I wanted concerning this subject
    and didn’t know who to ask.

    9月 22nd, 2015 at 10:32:33

  4. Edythe says:

    Hello too every one, since I am truly keen of reading this webpage’s post to be
    updated regularly. It contains good data.

    11月 8th, 2015 at 22:37:53

  5. cheap nba jerseys says:

    Cheap NFL Jerseys From China With Top Quliaty,We
    Are Offer A Fast Shipment & Big Disount To You,If You Have Any
    Question Please Contact Us Immediately,We Look Forward To You.
    Buy Here: cheap nba jerseys

    11月 19th, 2015 at 12:06:01

  6. bebes de silicona ebay says:

    A pesar de que la definición de deporte no detalla que la
    «actividad física» deba ser extenuante, existen deportes de
    bajo impacto físico que no son considerados como
    tales por ciertas personas.

    1月 5th, 2016 at 9:24:06

  7. sheet pile ชีทไพล์ ตอกถอนเช่าชีทไพล์ says:

    Thanks , I have recently been searching for information about
    this topic for ages and yours is the best I have came upon till now.
    But, what in regards to the conclusion? Are you positive concerning the source?

    8月 30th, 2016 at 8:47:42

  8. post49651 says:

    Very energetic article, I loved that a lot. Will there be a part 2?

    My weblog post49651

    12月 7th, 2016 at 19:43:16

  9. post2879 says:

    I was more than happy to find this great site. I want to to thank you for ones time for this wonderful
    read!! I definitely appreciated every bit of it and I have you book
    marked to check out new things in your web site.

    post2879

    12月 9th, 2016 at 14:56:31

  10. cheap NFL jerseys says:

    Hello very nice website!! Guy .. Excellent ..
    Amazing .. I’ll bookmark your site and take the feeds also?

    I’m glad to search out numerous helpful info here in the put
    up, we’d like develop more techniques on this regard, thanks for sharing.
    . . . . .
    cheap NFL jerseys

    12月 14th, 2016 at 14:07:58

  11. post10012560 says:

    I’d like to thank you for the efforts you’ve
    put in penning this website. I’m hoping to view the same high-grade blog
    posts by you in the future as well. In truth, your creative writing abilities has inspired me to get my
    own blog now ;)
    post10012560

    12月 16th, 2016 at 22:14:04

  12. cheap NFL jerseys says:

    My brother recommended I would possibly like this blog.
    He was entirely right. This post actually made my day.
    You can not consider simply how so much time I had spent for
    this info! Thank you!
    cheap NFL jerseys

    12月 24th, 2016 at 14:16:47

  13. Jessica says:

    I know this web site presents quality dependent posts and additional stuff, is there any other website which presents
    such stuff in quality?
    Jessica

    2月 14th, 2017 at 4:04:14

  14. wholesale NFL jerseys says:

    Pretty great post. I just stumbled upon your blog and
    wished to mention that I have truly loved browsing your weblog
    posts. In any case I’ll be subscribing on your rss feed and I’m hoping you write again very soon!
    wholesale NFL jerseys

    2月 14th, 2017 at 20:24:44

  15. discount jerseys says:

    I know this web site gives quality based articles and extra information, is there
    any other site which gives these data in quality?

    discount jerseys

    11月 6th, 2017 at 9:12:58

  16. wholesale NFL jerseys says:

    Hi there all, here every person is sharing these knowledge,
    thus it’s good to read this blog, and I used to go to see this website
    daily.
    wholesale NFL jerseys

    11月 15th, 2017 at 9:08:25

  17. cheap NFL jerseys says:

    Awesome post.
    cheap NFL jerseys

    11月 28th, 2017 at 3:03:49

Leave a comment