# dry-logger API compatible with Ruby logger?

**URL:** <https://discourse.dry-rb.org/t/dry-logger-api-compatible-with-ruby-logger/1590>\
**Category:** Uncategorized\
**Created:** [December 31, 2022, 1:01am UTC](https://discourse.dry-rb.org/t/dry-logger-api-compatible-with-ruby-logger/1590 "2022-12-31T01:01:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![masterT](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/mastert/32/833_2.png) [@masterT](https://discourse.dry-rb.org/u/masterT)\
**Post date:** [December 31, 2022, 1:01am UTC](https://discourse.dry-rb.org/t/dry-logger-api-compatible-with-ruby-logger/1590/1 "2022-12-31T01:01:23Z")

</div>

It would be helpful if the dry-logger API would be compatible with the standard Ruby Logger API so that it can be used in other libraries.

I think the only thing missing is to support block passed to the logging methods (`info`, `debug`, etc.). What do you think?

---

<div class="post-metadata">

**Author:** ![komidore64](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/komidore64/32/966_2.png) [@komidore64](https://discourse.dry-rb.org/u/komidore64)\
**Post date:** [April 27, 2024, 12:26pm UTC](https://discourse.dry-rb.org/t/dry-logger-api-compatible-with-ruby-logger/1590/2 "2024-04-27T12:26:12Z")

</div>

[Relevant GitHub Issue](https://github.com/dry-rb/dry-logger/issues/25).

---

<div class="post-metadata">

**Author:** ![komidore64](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/komidore64/32/966_2.png) [@komidore64](https://discourse.dry-rb.org/u/komidore64)\
**Post date:** [May 13, 2024, 1:37pm UTC](https://discourse.dry-rb.org/t/dry-logger-api-compatible-with-ruby-logger/1590/3 "2024-05-13T13:37:30Z")

</div>

Dry-Logger `v1.0.4` been [released](https://github.com/dry-rb/dry-logger/releases/tag/v1.0.4), which supports passing a block to the logger.

---

<div class="post-metadata">

**Author:** ![alassek](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/alassek/32/314_2.png) [@alassek](https://discourse.dry-rb.org/u/alassek)\
**Post date:** [May 14, 2024, 5:10pm UTC](https://discourse.dry-rb.org/t/dry-logger-api-compatible-with-ruby-logger/1590/4 "2024-05-14T17:10:06Z")

</div>

Nice work! Thanks
