lib/fluent/logger/logger_base.rb in fluent-logger-0.4.10 vs lib/fluent/logger/logger_base.rb in fluent-logger-0.5.0

- old
+ new

@@ -14,26 +14,24 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # module Fluent -module Logger + module Logger + class LoggerBase + def self.open(*args, &block) + Fluent::Logger.open(*args, &block) + end -class LoggerBase - def self.open(*args, &block) - Fluent::Logger.open(*args, &block) - end + def post(tag, map) + raise ArgumentError.new("Second argument should kind of Hash (tag: #{map})") unless map.kind_of? Hash + post_with_time(tag, map, Time.now) + end - def post(tag, map) - raise ArgumentError.new("Second argument should kind of Hash (tag: #{map})") unless map.kind_of? Hash - post_with_time(tag, map, Time.now) - end + #def post_with_time(tag, map) + #end - #def post_with_time(tag, map) - #end - - def close + def close + end + end end -end - -end end