Custom logging topic

Is there a way to make a custom logging topic, and and produce a log message using it from script ?