Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Added a note about how to setup the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
snusnu committed Feb 10, 2010
1 parent c8b503e commit 2d2b4cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions getting-started.markdown
Expand Up @@ -48,6 +48,9 @@ Specify your database connection
You need make sure this is set before you define your models. You need make sure this is set before you define your models.


{% highlight ruby %} {% highlight ruby %}
# If you want the logs displayed you have to do this before the call to setup
DataMapper::Logger.new($stdout, :debug)

# An in-memory Sqlite3 connection: # An in-memory Sqlite3 connection:
DataMapper.setup(:default, 'sqlite3::memory:') DataMapper.setup(:default, 'sqlite3::memory:')


Expand Down

0 comments on commit 2d2b4cf

Please sign in to comment.