An open API service indexing awesome lists of open source software.

https://github.com/yourssu/yls-web

Yourssu Logging System for Web
https://github.com/yourssu/yls-web

logging-library logging-system react yourssu

Last synced: 11 months ago
JSON representation

Yourssu Logging System for Web

Awesome Lists containing this project

README

          

## YLS란

YLS는 숭실대학교 동아리 유어슈에서 사용하는 로깅 시스템입니다.

사용자의 로그는 local storage에 담기며, 로그가 10개 쌓였을 경우/사용자가 이탈할 경우 백엔드 API를 호출해 로그를 전송합니다.

사용자의 userId는 YLS 내에서 식별 불가능 한 값으로 처리됩니다.

## Installation

```
npm install @yourssu/logging-system-react

yarn add @yourssu/logging-system-react

pnpm install @yourssu/logging-system-react
```

## Usage

YLS 내부에서는 timestamp와 platform을 처리합니다.

userId는 사용처에서 넣어주어야 하며, version과 event 내부 필드는 PM으로부터 전달받은 값을 넣어주어야 합니다.

### LogScreen

사용자가 진입한 화면을 추적합니다.

### LogClick

사용자의 클릭(이벤트)를 추적합니다.

```tsx
export const Home = () => {
const [count, setCount] = useState(0);
const router = useLocation();

return (
<>


setCount((count) => count + 1)}>count is {count}


>
);
};
```

## YLS를 사용하는 프로덕트

[Soomsil-Web](https://github.com/yourssu/Soomsil-Web)

## 타 버전 저장소

[YLS-Android](https://github.com/yourssu/YLS-Android)

[YLS-iOS](https://github.com/yourssu/YLS-iOS)

[YLS-Backend](https://github.com/yourssu/YLS-Backend)