Addresses feedback from #49 to wrap console warnings in a configurable logging service and confirms inject() usage throughout.
Changes
New LoggerService: Environment-aware wrapper for console methods with production suppression flag
Updated calendar-service.ts: Added LoggerService parameter to optimizeVacations() method signature
Updated calendar-year.ts: Inject and pass LoggerService to optimization flow
Example
// Before
console.warn(`Optimization stopped: ${remainingDays} days remain unplaced.`);// After
logger?.warn(`Optimization stopped: ${remainingDays} days remain unplaced.`);
The LoggerService can be configured via isProduction flag to disable non-error logging in production builds.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Addresses feedback from #49 to wrap console warnings in a configurable logging service and confirms inject() usage throughout.
## Changes
- **New LoggerService**: Environment-aware wrapper for console methods with production suppression flag
- **Updated calendar-service.ts**: Added LoggerService parameter to `optimizeVacations()` method signature
- **Updated calendar-year.ts**: Inject and pass LoggerService to optimization flow
## Example
```typescript
// Before
console.warn(`Optimization stopped: ${remainingDays} days remain unplaced.`);
// After
logger?.warn(`Optimization stopped: ${remainingDays} days remain unplaced.`);
```
The LoggerService can be configured via `isProduction` flag to disable non-error logging in production builds.
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for you](https://gitlab.nessar.fr/Nessar/vac-optimizer/-/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo.
changed title from {-[WIP] WIP address feedback on loading spinner enhancement-} to {+Replace console.warn with LoggerService in calendar optimization+}
changed title from **{-[WIP] WIP address feedback on loading spinner enhancement-}** to **{+Replace console.warn with LoggerService in calendar optimization+}**
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
<!-- gitlab-to-gitea-assignment:35:MergeRequest:51 -->
Preserved source assignment/reviewer metadata. Historical accounts stay inactive.
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Addresses feedback from #49 to wrap console warnings in a configurable logging service and confirms inject() usage throughout.
Changes
optimizeVacations()method signatureExample
The LoggerService can be configured via
isProductionflag to disable non-error logging in production builds.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
assigned to
@Copilotassigned to
@THoguetmentioned in merge request !49
changed title from {-[WIP] WIP address feedback on loading spinner enhancement-} to {+Replace console.warn with LoggerService in calendar optimization+}
requested review from
@THoguetPreserved source assignment/reviewer metadata. Historical accounts stay inactive.
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
Preserved GitLab !51 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 1; visible source notes: 5.
gitlab-35-mergerequest-51.md (SHA-256
7922eb65088f7e7690d9d076ff75766a9d8690534a385a859510135176ec2475)gitlab-35-mergerequest-51.json (SHA-256
84edfbacb30702276a4abb157739bf9382a1c8854bce3df5cbbfab75eb7edaaf)Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.
Pull request closed