Expand description

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

Structs

Main logger struct

Functions

Initialize and install a logger with a Cloudflare Workers environment variable

Initialize and install a logger with a log::Level

Initialize and install a logger with a string