V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
flyaway
V2EX  ›  问与答

Python logging 的实现机制是怎么样的?

  •  
  •   flyaway · Nov 21, 2017 · 2472 views
    This topic created in 3082 days ago, the information mentioned may be changed or developed.
    Python 标准库中的 logger 经常能通过 getLogger()从不同的文件中获取相同的 logger,有大神知道这是怎么实现的吗?底层机制是什么样的?
    2 replies    2017-11-21 06:45:25 +08:00
    binux
        1
    binux  
       Nov 21, 2017 via Android
    设计模式-单例模式
    flyaway
        2
    flyaway  
    OP
       Nov 21, 2017
    @binux Perfect !
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1554 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:31 · PVG 00:31 · LAX 09:31 · JFK 12:31
    ♥ Do have faith in what you're doing.