# Serilog.FullNetFx

**Kind:** Service

**Source:** `Pams/API/Pams.API/Pams.API.csproj` (line 1)

**Part of:** [Pams](subsystem-pams)

NuGet package dependency

`Serilog.FullNetFx` is a NuGet package dependency declared in `Pams.API.csproj`. It supports Serilog logging in the legacy .NET Framework API project, allowing application events and errors to be written through the configured Serilog pipeline.

## Diagram

```mermaid
sequenceDiagram
    participant API as Pams.API
    participant Serilog as Serilog.FullNetFx
    participant Sink as Configured Log Sink

    API->>Serilog: Write log event
    Serilog->>Sink: Send formatted log entry
```

## Usage

```typescript
// Serilog.FullNetFx is consumed by the .NET API project.
// A client calls an API endpoint; the API logs the request through Serilog.

const response = await fetch("/api/patients/123", {
  headers: {
    Accept: "application/json",
  },
});

if (!response.ok) {
  throw new Error(`API request failed: ${response.status}`);
}
```

## AI Coding Instructions

- Keep `Serilog.FullNetFx` references in `Pams.API.csproj` aligned with the legacy .NET Framework target.
- Configure Serilog during API startup before handling requests.
- Write structured log properties instead of concatenating request or entity data into log messages.
- Do not expose credentials, tokens, or sensitive patient data in log events.
- Check configured Serilog sinks when diagnosing missing API logs.

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Injected or called by (1)

- `Pams.API` — `Pams/API/Pams.API/Pams.API.csproj`:1
