summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/docs/source/logging_ffi.rst
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/js/package/docs/source/logging_ffi.rst')
-rw-r--r--intl/icu_capi/js/package/docs/source/logging_ffi.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/docs/source/logging_ffi.rst b/intl/icu_capi/js/package/docs/source/logging_ffi.rst
new file mode 100644
index 0000000000..450acc128b
--- /dev/null
+++ b/intl/icu_capi/js/package/docs/source/logging_ffi.rst
@@ -0,0 +1,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.
+