Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added development mode with verbose output to log
- Loading branch information
keith@dailymugshot.com
committed
Jan 9, 2010
1 parent
1144760
commit 4f2303b
Showing
4 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
module ActiveSocket | ||
def log | ||
|
||
@log ||= Logger.new(File.dirname(__FILE__) + "/../debug.log") | ||
|
||
# Replace the above line with the following to use Rails logging: | ||
# @log ||= Rails.logger | ||
|
||
unless @log | ||
@log = Logger.new(File.dirname(__FILE__) + "/../log.log") | ||
@log.level = (ActiveSocket::ENV == :development) ? Logger::DEBUG : Logger::WARN | ||
end | ||
@log | ||
end | ||
module_function :log | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters