From 1ea0dd0ffc37232d27f4fa1350af6ebb3b5439f2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 25 Oct 2012 11:59:41 +0300 Subject: App docs --- doc/app/Gitlab/Logger.html | 583 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 583 insertions(+) create mode 100644 doc/app/Gitlab/Logger.html (limited to 'doc/app/Gitlab/Logger.html') diff --git a/doc/app/Gitlab/Logger.html b/doc/app/Gitlab/Logger.html new file mode 100644 index 00000000000..8cc6cdea81b --- /dev/null +++ b/doc/app/Gitlab/Logger.html @@ -0,0 +1,583 @@ + + + + + + +class Gitlab::Logger - Rails Application Documentation + + + + + + + + + + + + + + + + +
+

class Gitlab::Logger

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Class Methods

+ + +
+ +
+ build() + click to toggle source +
+ + +
+ + + + + +
+
# File lib/gitlab/logger.rb, line 17
+def self.build
+  new(Rails.root.join("log", file_name))
+end
+
+ +
+ + + + +
+ + +
+ +
+ error(message) + click to toggle source +
+ + +
+ + + + + +
+
# File lib/gitlab/logger.rb, line 3
+def self.error(message)
+  build.error(message)
+end
+
+ +
+ + + + +
+ + +
+ +
+ info(message) + click to toggle source +
+ + +
+ + + + + +
+
# File lib/gitlab/logger.rb, line 7
+def self.info(message)
+  build.info(message)
+end
+
+ +
+ + + + +
+ + +
+ +
+ read_latest() + click to toggle source +
+ + +
+ + + + + +
+
# File lib/gitlab/logger.rb, line 11
+def self.read_latest
+  path = Rails.root.join("log", file_name)
+  self.build unless File.exist?(path)
+  logs = File.read(path).split("\n")
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + -- cgit v1.2.1