servicemonitor 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/servicemonitor +4 -1
- metadata +1 -1
data/bin/servicemonitor
CHANGED
@@ -14,9 +14,12 @@ require "MonitorType/FluidDb"
|
|
14
14
|
require "MonitorManager"
|
15
15
|
|
16
16
|
def log( string, verbose=false )
|
17
|
+
type = verbose ? "VERB" : "INFO"
|
17
18
|
if !ENV["VERBOSE"].nil? || verbose==false then
|
18
19
|
puts string
|
19
|
-
|
20
|
+
timestamp = Time.new.strftime( "%Y-%m-%d %H:%M:%S" )
|
21
|
+
puts "[#{type}] #{timestamp} :: #{string}"
|
22
|
+
end
|
20
23
|
end
|
21
24
|
|
22
25
|
if ARGV.length == 1 then
|