pub fn initialize(opts: PublishOptions<'_>) -> Result<(), PublishError>
Expand description
Initializes logging with the given options.
IMPORTANT: this should be called at most once in a program, and must be called only after an async executor has been set for the current thread, otherwise it’ll return errors or panic. Therefore it’s recommended to never call this from libraries and only do it from binaries.