logger: fix CHANNEL define
tls: add client functionality