Accessing Logger

Is there a way I can access logger messages via my controller? Can I log to a database via logger?

-m