1

I'm using SQLite.swift library in my iOS project.

Now I'm logging SQLite sentences using db.trace(println) as suggested in the documentation, but I want to use the XCGLogger library with something like log.info().

Somebody knows how to do it?

Jay Bhalani
  • 4,142
  • 8
  • 37
  • 50
Alex Bibiano
  • 633
  • 1
  • 6
  • 19

1 Answers1

2

You can use a closure and call the log.info() function inside of it:

db.trace { SQL in
    log.info(SQL)
}
stephencelis
  • 4,954
  • 2
  • 29
  • 22