# ILogger

`interface` in `types` · v0.8.0-next.6

<https://docs.seedcord.org/packages/types/0.8.0-next.6/interfaces/ilogger>

One method per severity. `msg` is the printf-style template, `args` fill its specifiers and trail as extra fields.

```ts
interface ILogger
```

## Examples

```ts
logger.error('Failed to load %s', url, { code: 404 });
logger.info('User %s has %d points and %f rating', username, points, rating, { extra: 'data' });
```

## Methods

### debug

```ts
debug(
    msg: string,
    args: unknown[]
): void
```

### error

```ts
error(
    msg: string,
    args: unknown[]
): void
```

### info

```ts
info(
    msg: string,
    args: unknown[]
): void
```

### trace

```ts
trace(
    msg: string,
    args: unknown[]
): void
```

### warn

```ts
warn(
    msg: string,
    args: unknown[]
): void
```
