---
title: init_simple
summary: Initialize logging with a single endpoint filtered by log level.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/log_fastly/fn.init_simple/
---

**Kind:** Function  
**Module:** [log_fastly](https://www.fastly.com/documentation/reference/compute/sdks/rust/log_fastly/)  
**Package:** log-fastly 0.13.1  
**Source:** https://docs.rs/crate/log-fastly/0.13.1/source/src/lib.rs#768

```rust
fn init_simple<E>(endpoint: E, level: LevelFilter)
where
    E: TryInto<Endpoint>,
    E::Error: Into<Error>,
```

Initialize logging with a single endpoint filtered by log level.

For advanced configuration, see the [`Builder`](https://www.fastly.com/documentation/reference/compute/sdks/rust/log_fastly/struct.Builder/) type, and the module-level
documentation.

```rust
log_fastly::init_simple("my_endpoint", log::LevelFilter::Warn);
log::warn!("This will be written to my_endpoint...");
log::info!("...but this won't");
```

**Parameters**

- `endpoint`: `E`
- `level`: `log::LevelFilter`
