2 unstable releases

0.2.0 Apr 18, 2022
0.1.2 Apr 18, 2022
0.1.1 Apr 18, 2022
0.1.0 Apr 17, 2022

#816 in WebAssembly

Download history 8/week @ 2024-07-22 17/week @ 2024-07-29 2/week @ 2024-08-05 10/week @ 2024-08-12 20/week @ 2024-08-26 6/week @ 2024-09-02 14/week @ 2024-09-09 7/week @ 2024-09-16 23/week @ 2024-09-23 22/week @ 2024-09-30 5/week @ 2024-10-07 2/week @ 2024-10-14 34/week @ 2024-10-21 8/week @ 2024-10-28

51 downloads per month

MIT/Apache

9KB
125 lines

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


lib.rs:

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

Dependencies

~17–34MB
~446K SLoC