# LoggerUtilities

`class` in `services` · v0.8.2

<https://docs.seedcord.org/packages/services/0.8.2/classes/logger-utilities>

Provides access to common logging utilities.

```ts
class LoggerUtilities
```

## Constructors

### constructor

```ts
LoggerUtilities(logger: ILogger)
```

Constructs a new instance of the `LoggerUtilities` class

## Methods

### box

```ts
public box(
    title: string,
    content: string[],
    level?: LoggerLevel
): void
```

Logs content in a decorative box.

### initialization

```ts
public initialization(
    component: string,
    action: "start" | "end",
    level?: LoggerLevel
): void
```

Logs component initialization start/end.

### item

```ts
public item(
    text: string,
    level?: LoggerLevel
): void
```

Logs a single item with an arrow prefix.

### list

```ts
public list(
    items: string[],
    heading?: string,
    level?: LoggerLevel
): void
```

Logs a list of items with optional heading.

### progress

```ts
public progress(
    current: number,
    total: number,
    item?: string,
    level?: LoggerLevel
): void
```

Logs progress as "[current/total]" with optional item label.

### registration

```ts
public registration(
    name: string,
    from: string,
    type?: string,
    level?: LoggerLevel
): void
```

Logs a component registration message.

### summary

```ts
public summary(
    title: string,
    items: Record<
        string,
        number | string
    >,
    level?: LoggerLevel
): void
```

Logs a summary with title and key-value pairs. Example: "Loaded: 5 handlers, 3 commands"
