diff options
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XLogger.d.ts')
-rw-r--r-- | intl/icu_capi/js/package/lib/ICU4XLogger.d.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XLogger.d.ts b/intl/icu_capi/js/package/lib/ICU4XLogger.d.ts new file mode 100644 index 0000000000..c44d9c4be2 --- /dev/null +++ b/intl/icu_capi/js/package/lib/ICU4XLogger.d.ts @@ -0,0 +1,23 @@ + +/** + + * An object allowing control over the logging used + */ +export class ICU4XLogger { + + /** + + * Initialize the logger using `simple_logger` + + * Requires the `simple_logger` Cargo feature. + + * Returns `false` if there was already a logger set. + */ + static init_simple_logger(): boolean; + + /** + + * Deprecated: since ICU4X 1.4, this now happens automatically if the `log` feature is enabled. + */ + static init_console_logger(): boolean; +} |