worker_logger

Crates.ioworker_logger
lib.rsworker_logger
version0.2.0
sourcesrc
created_at2022-04-17 12:58:02.248311
updated_at2022-04-18 04:40:01.230533
descriptionA logger implementation for Cloudflare Workers
homepagehttps://github.com/RedL0tus/worker_logger
repositoryhttps://github.com/RedL0tus/worker_logger
max_upload_size
id569439
size20,985
TheSaltedFish (RedL0tus)

documentation

README

worker_logger

Logger implementation for Cloudflare Workers. Bridges the log ecosystem to Cloudflare Worker.

Example

Initialize the logger with a string:

worker_logger::init_with_string("info");

Or initialize with a level struct:

use log::Level;
worker_logger::init_with_level(&Level::Debug);

Or with a Cloudflare Worker environment variable:

worker_logger::init_with_env(env, "LOG")?;

Features

Commit count: 16

cargo fmt