46 - add console as a logger #50

Merged
GuillaumeHemmen merged 4 commits from 46-add-console-as-a-logger into master 2026-03-17 16:13:23 +00:00

I'll read the PR template and fill it out based on the current branch changes.## Description

This PR adds support for console logging by introducing a new createConsoleLogger function. This logger outputs formatted log messages directly to the JavaScript console using console.log, console.warn, console.error, and console.debug methods. It's particularly useful for development environments where React Native debuggers or browser developer tools are attached.

The PR also removes the CHANGELOG.md file in favor of using the releases tab for version history tracking.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Refactoring (no functional changes)
  • CI/CD update

Fixes #46

Testing

  • Unit tests added/updated
  • Manual testing performed
  • Tested on iOS
  • Tested on Android

Breaking Changes

N/A - This is a non-breaking additive change. The new createConsoleLogger function is optional and does not affect existing functionality.

Checklist

  • Code follows the project's code style (Prettier, ESLint)
  • TypeScript types are properly defined
  • Tests pass locally
  • Documentation updated (if needed)
  • CI checks pass (Prettier, TypeScript, Lint, Tests, Sonar)
I'll read the PR template and fill it out based on the current branch changes.## Description This PR adds support for console logging by introducing a new `createConsoleLogger` function. This logger outputs formatted log messages directly to the JavaScript console using `console.log`, `console.warn`, `console.error`, and `console.debug` methods. It's particularly useful for development environments where React Native debuggers or browser developer tools are attached. The PR also removes the CHANGELOG.md file in favor of using the [releases](https://git.van-hemmen.com/openrn/react-native-logging-tools/releases) tab for version history tracking. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] Documentation update - [ ] Performance improvement - [ ] Refactoring (no functional changes) - [ ] CI/CD update ## Related Issue Fixes #46 ## Testing - [x] Unit tests added/updated - [x] Manual testing performed - [x] Tested on iOS - [x] Tested on Android ## Breaking Changes N/A - This is a non-breaking additive change. The new `createConsoleLogger` function is optional and does not affect existing functionality. ## Checklist - [x] Code follows the project's code style (Prettier, ESLint) - [x] TypeScript types are properly defined - [x] Tests pass locally - [x] Documentation updated (if needed) - [x] CI checks pass (Prettier, TypeScript, Lint, Tests, Sonar)
46 - Add unit tests for createConsoleLogger functionality
All checks were successful
/ pre-check (push) Successful in 13s
/ tsc (push) Successful in 29s
/ prettier (push) Successful in 31s
/ lint (push) Successful in 34s
/ unit-testing (push) Successful in 34s
/ sonar (push) Successful in 1m0s
133c931316
46 - Update README and reference documentation to include createConsoleLogger usage and guidelines.
All checks were successful
/ tsc (push) Successful in 34s
/ lint (push) Successful in 34s
/ unit-testing (push) Successful in 31s
/ sonar (push) Successful in 1m1s
/ pre-check (push) Successful in 16s
/ prettier (push) Successful in 27s
5bf109d8cc
GuillaumeHemmen deleted branch 46-add-console-as-a-logger 2026-03-17 16:13:23 +00:00
Sign in to join this conversation.
No description provided.