Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Sample project showing how to integrate Logentries into React

Notifications You must be signed in to change notification settings

LogentriesCommunity/Logentries_React_Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logentries React Sample

To build the sample:

  • Replace the token in app/app.jsx with your Logentries token (see below)
  • Install node.js version => 0.12
  • Install npm install -g webpack (or use the bin path in node_modules below where we call webpack)
  • Run npm install
  • Run webpack webpack.config.js
  • Open app/index.html in a web browser

Connecting the sample to you Logentries account

  • Edit the app/js/app.jsx file.
  • Replace the "1234_fake_token" with your token and the links will post correctly to your Logentries.com endpoint.
const Logger = require ('./logger.jsx')('1234_fake_token', {trace: true});

becomes

const Logger = require ('./logger.jsx')('your token', {trace: true});

About

Sample project showing how to integrate Logentries into React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published