Closed lpatiny closed 3 months ago
@targos What do you think about this type ? I would like that some libraries like openchemlib-utils are able to send 'warn' but if a logger is not specified it simply uses console.warn.
Is this something acceptable to you ?
This doesn't seem correct. Please show an example of use in real code.
https://github.com/cheminfo/openchemlib-utils/blob/a9ad35d649b278cebc9c878fb06ce6a67b01b4bb/src/topic/TopicMolecule.ts#L294-L297
@targos What do you think about this type ? I would like that some libraries like openchemlib-utils are able to send 'warn' but if a logger is not specified it simply uses console.warn.
Is this something acceptable to you ?