[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/core](../../README) / [logger](../README) / Log

# Variable: Log

> `const` **Log**: [`LogManager`](../classes/LogManager)

Defined in: [logger/Log.ts:35](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/logger/Log.ts#L35)

Static facade over the container-bound [LogManager](../classes/LogManager).

Every access resolves the live `log` singleton, so `Log` exposes the full
[LogManager](../classes/LogManager) surface: the five level methods
([debug](../classes/LogManager#debug)/[info](../classes/LogManager#info)/
[warn](../classes/LogManager#warn)/[error](../classes/LogManager#error)/
[fatal](../classes/LogManager#fatal)) on the default channel, plus
[channel](../classes/LogManager#channel) and
[withContext](../classes/LogManager#withcontext). Available after the application
has booted (the facade throws if accessed at module scope before boot).

## Example

```ts
import { Log } from "@zerotal/core/logger";

// Level + structured context.
Log.info("Order placed", { orderId: 99, total: 42.5 });

// Attach an error — its message and stack are captured onto the entry.
Log.error("Charge failed", { orderId: 99 }, err);

// Contextual logging: shared fields merged into every subsequent entry.
const scoped = Log.withContext({ tenant: "acme" });
scoped.warn("Quota nearly exhausted", { pct: 92 });

// Target a specific configured channel.
Log.channel("daily").info("Persisted to today's rotating file");
```
