[Abtlinux-svn] SF.net SVN: abtlinux: [181] src/trunk/AbtLogManager.rb
Status: Alpha
Brought to you by:
eschabell
|
From: <esc...@us...> - 2006-11-15 14:17:57
|
Revision: 181
http://svn.sourceforge.net/abtlinux/?rev=181&view=rev
Author: eschabell
Date: 2006-11-15 06:17:51 -0800 (Wed, 15 Nov 2006)
Log Message:
-----------
Previous commit included log to journal functionality, working and placed in various implemented sections of abt. This fix completes the log to journal test successfully.
Modified Paths:
--------------
src/trunk/AbtLogManager.rb
Modified: src/trunk/AbtLogManager.rb
===================================================================
--- src/trunk/AbtLogManager.rb 2006-11-15 14:13:36 UTC (rev 180)
+++ src/trunk/AbtLogManager.rb 2006-11-15 14:17:51 UTC (rev 181)
@@ -101,7 +101,7 @@
#
# <b>PARAM</b> <i>String</i> - Message to be added to the log.
#
- # <b>RETURN</b> <i>void</i>
+ # <b>RETURN</b> <i>boolean</i> True if logged, otherwise false.
##
def logToJournal( message )
require 'date'
@@ -112,5 +112,6 @@
log = File.new($JOURNAL, File::WRONLY|File::APPEND|File::CREAT, 0644)
log.puts DateTime::now.to_s + ' : ' + message
+ return true
end
end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|