addChannel
Adds a channel to the log and immediately writes its schema definition.
This method registers the channel with the log writer and writes a schema entry to the log file. The schema entry contains the channel name and the complete schema definition for the channel's data type.
Return
The same channel that was passed in, for method chaining
Parameters
The type of objects that will be written to this channel
The channel to add to this log writer
Throws
if the channel belongs to a different log writer
Adds a channel to the log, creating a WriterChannel from the given LogChannel if necessary.
If the provided channel is already a WriterChannel belonging to this writer, it is added directly. Otherwise, a new WriterChannel is created with the same name and schema.
Return
A WriterChannel bound to this writer
Parameters
The type of objects that will be written to this channel
The channel to add