Upgrade to Pro — share decks privately, control downloads, hide ads and more …

デバッグ用ロガーの注入どうする?

 デバッグ用ロガーの注入どうする?

PHPカンファレンス 2023 懇親会 LT の

Hisateru Tanaka

October 07, 2023
Tweet

More Decks by Hisateru Tanaka

Other Decks in Technology

Transcript

  1. σόοά༻ϩΨʔͷ஫ೖ
    Ͳ͏͢Δ
    ୒໰୊

    View full-size slide

  2. w ೥ͷ೥຤ʹຊ͕ग़·ͨ͠
    w ͱͯ΋࣮༻ੑ͕ߴ͍಺༰Ͱ͢
    w ͥͻಡΈ·͠ΐ͏
    w ಡΜͩਓ͸͓༑ୡʹקΊ·͠ΐ͏
    ాதͻͯ͞Δ

    View full-size slide

  3. %*ίϯςφʹ৭ʑೖΕͯ"QQͷSVO
    1)1%*ͷྫ
    IUUQTHJUIVCDPNUBOBLBIJTBUFSVEJEFCVHMPHEFNP

    View full-size slide

  4. ͜ͷΞϓϦʹͪΐͬͱ143
    -PHHFS*OUFSGBDFEFCVH
    ͍Ε͍ͨ
    Έͳ͞ΜͲ͏΍Γ·͔͢

    View full-size slide

  5. -PHEFCVH

    αʔϏεϩέʔλʔͷγϣʔτΧοτ

    View full-size slide

  6. @@DPOTUSVDU
    ίϯετϥΫλΠϯδΣΫγϣϯ

    View full-size slide

  7. TFU-PHHFS
    ηολʔΠϯδΣΫγϣϯ

    View full-size slide

  8. <*OKFDU>
    1)1ΞτϦϏϡʔτ1)1%*

    View full-size slide

  9. ͦ΋ͦ΋σόοάϩάͬͯ͋͞
    Ұൠతͳࣄ৘ͱҧͬͯ
    w ࢥ͍෇͖Ͱαοͱ଍͍ͨ͠
    w ཁΒͳ͘ͳͬͨΒαοͱফ͍ͨ͠
    w ʜͷ༗ແʹؔ܎ͳ͘
    ୯ମςετ͸ͦͷ··ʹ͍ͨ͠
    w %*ͷઃఆʹ΋Өڹ͠ͳ͍Ͱཉ͍͠

    View full-size slide

  10. ΛબΜͩ͋ͳͨ
    ͜ΕςετͰͲ͏ͳΔ͔ͳ

    View full-size slide

  11. ͏Θ͊ʜ
    ʮίϯςφશମʯͷμϛʔ͕ඞཁ

    View full-size slide

  12. ΛબΜͩ͋ͳͨ
    Ұൠతʹ͸͜Ε͕ૉ௚ͳΜ͚ͩͲʜ
    ΍ͬͪΌ͏ͱϞοΫ͕ඞཁͰςετͷॻ͖׵͑ʹͳΔ

    View full-size slide

  13. ίϯετϥΫλҾ਺
    ࢥ͍෇͖Ͱ௥Ճͱ͔΍Ίͯ

    View full-size slide

  14. ΛબΜͩ͋ͳͨ
    ࢥ͍෇͖Ͱ଍ͯ͠΋ςετʹ͸Өڹ͠ͳ͍ΜͰ͢ΑͶ

    View full-size slide

  15. ͨͩɺ։ൃ؀ڥͰಈ͔͢ͳΒʜ
    ઃఆϑΝΠϧͷϝϯς͕ຖճى͖ͯͩΔ͍

    View full-size slide

  16. ΛબΜͩ͋ͳͨ
    <ʜ>ͬͯมͳͷ͕࣮૷ʹࠞͬͯ͟͸͘Δ͚Ͳʜ
    ςετʹ΋ઃఆʹ΋ɺͳΜͷӨڹ΋ͳ͍ͥ

    View full-size slide

  17. ͦͷ৔ͷࢥ͍෇͖Ͱ଍ͤΔ

    View full-size slide

  18. ͳ͔ͬͨΒಈ͔ͳ͍

    View full-size slide

  19. ༻͕ࡁΜͰ࡟আͯ͠΋
    ΍ͬͺΓӨڹͳ͍

    View full-size slide

  20. -PHEFCVH
    ฒΈʹࡶʹ΍Δͱ͖
    <ʜ>Ͱͷ஫ೖ໾ʹཱͭ͡ΌΜ
    ґଘάϥϑͷઃܭΛ͢ΔͳΒίϯετϥΫλ஫ೖ͕جຊ͚ͩͲ
    ͋͘·Ͱͬͦ͜Γߦ୯ҐͰΰχϣΰχϣͷཪٕͳ
    ґଘάϥϑͷઃܭ͸جຊɺίϯετϥΫλͰ΍Ζ͏ͳ

    View full-size slide