<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def logs(channel):
	"Where can one find the logs?"
	default_url = 'http://' + socket.getfqdn()
	base = pmxbot.config.get('logs URL', default_url)
	logged_channel = channel in pmxbot.config.log_channels
	path = '/channel/' + channel.lstrip('#') if logged_channel else '/'
	return urllib.parse.urljoin(base, path)