Files
bsky-social-app/src/logger
Alex Benzer 625b4e61db Welcome modal on logged-out homepage (#8944)
* Adds welcome modal to logged-out homepage

* Adds metrics and feature gate for welcome modal

* Slightly smaller text for mobile screens to avoid wrapping

* Remove unused SVG

* Adds text gradient and "X" close button

* Fix color on "Already have an account?" text

* tweak hooks, react import

* rm stylesheet

* use hardcoded colors

* add focus guards and scope

* no such thing as /home

* reduce spacign

* use css animations

* use session storage

* fix animation fill mode

* add a11y props

* Fix link/button color mismatch, reduce gap between buttons, show modal until user dismisses it

* Fix "Already have an account?" line left-aligning in small window sizes

* Adds "dismissed" and "presented" metric events

---------

Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2025-09-04 07:20:46 -07:00
..
2025-07-30 12:33:40 -05:00
2025-07-30 12:33:40 -05:00
2025-07-30 12:33:40 -05:00
2025-02-28 12:09:36 -06:00
2025-02-28 12:09:36 -06:00
2025-02-28 12:09:36 -06:00

Logger

Simple logger for Bluesky.

At a Glance

import { logger, Logger } from '#/logger'

// or, optionally create new instance with custom context
// const logger = Logger.create(Logger.Context.Notifications)

// for dev-only logs
logger.debug(message, {})

// for production breadcrumbs
logger.info(message, {})

// seldom used, prefer `info`
logger.log(message, {})

// for non-error issues to look into, seldom used, prefer `error`
logger.warn(message, {})

// for known errors without an exception, use a string
logger.error(`known error`, {})

// for unknown exceptions
try {
} catch (e) {
  logger.error(e, {message: `explain error`}])
}

Log Levels

Log level defaults to info. You can set this via the EXPO_PUBLIC_LOG_LEVEL env var in .env.local.

Filtering debugs by context

Debug logs are dev-only, and not enabled by default. Once enabled, they can get noisy. So you can filter them by setting the EXPO_PUBLIC_LOG_DEBUG env var e.g. EXPO_PUBLIC_LOG_DEBUG=notifications. These values can be comma-separated and include wildcards.