Nephos/NephosRubyServer

View on GitHub
lib/nephos-server/server/logger.rb

Summary

Maintainability
A
0 mins
Test Coverage
# coding: utf-8

module Nephos

  module Logger

    @@fd = STDOUT
    def self.write(*what)
      what.flatten.each{|e| @@fd.write("#{e}\n")}
      @@fd.flush
    end

    def self.fd= fd
      @@fd = fd
    end

  end

  def self.log *what
    Logger.write what
  end

end