New:Socket for Asana Is Now Available.Learn more
Get Started

@flashcatcloud/browser-logs

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flashcatcloud/browser-logs

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
193
382.5%
Maintainers
3
Weekly downloads
 
Created
Source

Browser Log Collection

Send logs to Flashcat from web browser pages with the browser logs SDK.

Usage

After adding @flashcatcloud/browser-logs to your package.json file, initialize it with:

import { flashcatLogs } from '@flashcatcloud/browser-logs'

flashcatLogs.init({
  clientToken: '<FC_CLIENT_TOKEN>',
  site: '<FC_SITE>',
  forwardErrorsToLogs: true,
  sessionSampleRate: 100,
})

After the Flashcat browser logs SDK is initialized, send custom log entries directly to Flashcat:

import { flashcatLogs } from '@flashcatcloud/browser-logs'

flashcatLogs.logger.info('Button clicked', { name: 'buttonName', id: 123 })

try {
  ...
  throw new Error('Wrong behavior')
  ...
} catch (ex) {
  flashcatLogs.logger.error('Error occurred', { team: 'myTeam' }, ex)
}

FAQs

Package last updated on 21 Aug 2026

Related posts