logger: make socket initialization in main() more readable

Signed-off-by: Karel Zak <kzak@redhat.com>