文件名称:logbert:只是你友好的邻居记录员
文件大小:15KB
文件格式:ZIP
更新时间:2024-07-29 14:14:01
Ruby
Logbert 只是您友好的邻居记录员! 为什么是另一个记录器? 传统的 Ruby 记录器很难在不修改应用程序代码的情况下更改日志记录行为。 例如: require 'logger' # This does not belong here. Why does my application # care that the messages will be streamed to $stdout ? LOG = Logger . new $stderr # This does not belong here. Why does my application # care that messages will only be recorded when they # are at WARN level or higher? LOG . level = Logger :: WARN
【文件预览】:
logbert-master
----.gitignore(31B)
----logbert.gemspec(488B)
----Gemfile(81B)
----spec()
--------naming_spec.rb(879B)
--------logger_factory_spec.rb(1KB)
--------levels_spec.rb(9KB)
----README.rdoc(3KB)
----lib()
--------logbert.rb(371B)
--------logbert()