Crates.io | worker_logger |
lib.rs | worker_logger |
version | 0.2.0 |
source | src |
created_at | 2022-04-17 12:58:02.248311 |
updated_at | 2022-04-18 04:40:01.230533 |
description | A logger implementation for Cloudflare Workers |
homepage | https://github.com/RedL0tus/worker_logger |
repository | https://github.com/RedL0tus/worker_logger |
max_upload_size | |
id | 569439 |
size | 20,985 |
Logger implementation for Cloudflare Workers.
Bridges the log
ecosystem to Cloudflare Worker.
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")?;
env_logger_string
: Enables advanced logging filters. Uses the same syntax as
env_logger
. For more details, please visit
https://docs.rs/env_logger/latest/env_logger/#enabling-logging.color
: Enable colored output with colored
.