Function LoggerOf.close

Closes the log channel and waits for all listeners to finish pending work before returning.

void close() shared;

Once the logger is closed, it cannot be used again.

You should close any logger you attached listeners to before returning from main().