#[cfg(not(all(
any(target_arch = "wasm32", target_arch = "wasm64"),
target_os = "unknown"
)))]
pub const SUPPORTED: bool = false;
#[cfg(all(
any(target_arch = "wasm32", target_arch = "wasm64"),
target_os = "unknown"
))]
pub const SUPPORTED: bool = true;
pub mod console;
#[cfg(feature = "logger")]
mod log_impl;
#[cfg(feature = "logger")]
pub mod log_level;
pub mod macros;
#[cfg(feature = "logger")]
type Any = wasm_bindgen::JsValue;
#[cfg(feature = "logger")]
use wasm_bindgen::prelude::wasm_bindgen;
#[cfg(feature = "logger")]
mod logger;
#[cfg(feature = "logger")]
#[wasm_bindgen(js_name = _clgConsoleLogger)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
pub struct ConsoleLogger(log::LevelFilter);
#[cfg(feature = "logger")]
pub fn get_offset_time() -> time::OffsetDateTime {
use time::OffsetDateTime as offset;
offset::now_local().unwrap_or_else(|_| offset::now_utc())
}
#[cfg(feature = "logger")]
mod test_wasm {
use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen(js_name = __clgTestLogger)]
pub fn test_logger() {
use log::*;
trace!("Trace");
debug!("DBG");
info!("information");
warn!("warning");
error!("panic");
}
}