Opens a port, awaits log messages and stores them in a database.