socketry / console

MIT License
52 stars 13 forks source link

Expose direct interface on `Console`. #46

Closed ioquatix closed 1 year ago

ioquatix commented 1 year ago

When I first created this gem, I was focused on creating an object-centric interface. However, in practice, this is not useful. For the sake of compatibility and integration, a simple, standard interface is preferable.

Introduce Console.info and so on, which should redirect to whatever internal interface is appropriate.

Externally, code that needs to log things, should directly invoke the Console#{level} interface. We will also introduce documentation about the exact nature of that interface.

Types of Changes

Contribution