Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 828 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 828 Bytes

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