summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/docs/source/logging_ffi.rst
blob: 450acc128b9b4f22a7cfc2cf8a4bf003caa29155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
``logging::ffi``
================

.. js:class:: ICU4XLogger

    An object allowing control over the logging used


    .. js:function:: init_simple_logger()

        Initialize the logger using ``simple_logger``

        Requires the ``simple_logger`` Cargo feature.

        Returns ``false`` if there was already a logger set.


    .. js:function:: init_console_logger()

        Deprecated: since ICU4X 1.4, this now happens automatically if the ``log`` feature is enabled.