# Format.kprintf usage

**URL:** <https://discuss.ocaml.org/t/format-kprintf-usage/1396>\
**Category:** Learning\
**Tags:** logs\
**Created:** [January 6, 2018, 11:48am UTC](https://discuss.ocaml.org/t/format-kprintf-usage/1396 "2018-01-06T11:48:37Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dbuenzli](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/dbuenzli/32/18_2.png) [@dbuenzli](https://discuss.ocaml.org/u/dbuenzli)\
**Post date:** [January 6, 2018, 1:37pm UTC](https://discuss.ocaml.org/t/format-kprintf-usage/1396/7 "2018-01-06T13:37:25Z")

</div>

> [@c-cube](#):
>
> (inspired from Daniel Bünzli’s work)

To give credit where it is due, the closure trick was actually suggested by @yallop and profiled by @drup to validate its performance before it got into [logs](http://erratique.ch/software/logs).

EDIT: here’s the [initial discussion](https://github.com/mirage/ocaml-git/pull/130)

---

_[View the full topic](https://discuss.ocaml.org/t/format-kprintf-usage/1396)._
