Sha256: a324dbf4249e2b47780ea2a5ba21bc4717da980ba37203647695b5c30d574925

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>log (Keystone::Base)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/keystone/base.rb, line 3</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">log_type</span>,<span class="ruby-identifier">message</span>, <span class="ruby-identifier">is_base_info</span> = <span class="ruby-keyword kw">true</span>)
      <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_base_info</span>
        <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;[#{Time.now.strftime(&quot;%Y/%m/%d %H:%M:%S&quot;)}][#{$$}][#{log_type.to_s}] #{message}&quot;</span>
      <span class="ruby-keyword kw">else</span>
        <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;[#{log_type.to_s}] #{message}&quot;</span>
      <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keystone-0.0.32 doc/classes/Keystone/Base.src/M000054.html
keystone-0.0.31 doc/classes/Keystone/Base.src/M000054.html
keystone-0.0.30 doc/classes/Keystone/Base.src/M000054.html
keystone-0.0.29 doc/classes/Keystone/Base.src/M000054.html