> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ooneex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# logger:create

> Generate a new logger class.

Scaffolds a logger class and its test file into the target module. It writes `modules/<module>/src/loggers/<Name>Logger.ts` and `modules/<module>/tests/loggers/<Name>Logger.spec.ts`, and installs the `@ooneex/logger` dependency if it is missing.

## Usage

```bash theme={null}
ooneex logger:create [options]
```

## Examples

```bash theme={null}
ooneex logger:create
```

```bash theme={null}
ooneex logger:create --name=Audit
```

```bash theme={null}
ooneex logger:create --name=Audit --module=auth --override
```

## Options

| Option       | Description                                                    | Default             |
| ------------ | -------------------------------------------------------------- | ------------------- |
| `--name`     | Resource name (the `Logger` suffix is appended automatically). | Prompted if omitted |
| `--module`   | Target module.                                                 | `shared`            |
| `--override` | Overwrite an existing file without confirmation.               | `false`             |

## AI Skill

This command ships a matching `logger:create` skill. Your AI agent uses it to generate a new logger class and its test file, then implement `init` and the `log`, `debug`, `info`, `success`, `warn`, and `error` methods for the `ILogger` interface from `@ooneex/logger`.

<Tabs>
  <Tab title="Claude">
    ```bash theme={null}
    ooneex claude:init
    ```
  </Tab>

  <Tab title="Codex">
    ```bash theme={null}
    ooneex codex:init
    ```
  </Tab>
</Tabs>
