Comments (2)
According to the below code:
Line 1 in cad208a
The FlashStore currently using the global instance log
from Brolog
, which is the same as the Wechaty Puppet system is using.
A solution would be to disable the log for FlashStore by default, add a logger
option in the FlashStoreOptions
, and can pass a Logger
to it to enable the log:
flash-store/src/flash-store.ts
Lines 49 to 51 in cad208a
We can use the
Logger
interface from Brolog here:
https://github.com/huan/brolog/blob/aa83c0940b9bffe6340d8ae9e4db6a1ad8bb9f07/src/logger.ts#L3
I'd like to accept a PR for implementing the above design.
from flash-store.
Thanks for you response and advice, I will do it when I'm available.
from flash-store.
Related Issues (20)
- Switch to SnapDB HOT 4
- Action required: Greenkeeper could not be activated 🚨
- Learn what happened from wechaty-puppet-padpro HOT 1
- Little confused about FlashStore.size HOT 3
- An in-range update of @types/node is breaking the build 🚨 HOT 22
- An in-range update of rollup is breaking the build 🚨 HOT 11
- An in-range update of snap-db is breaking the build 🚨 HOT 1
- An in-range update of ts-node is breaking the build 🚨 HOT 1
- An in-range update of tstest is breaking the build 🚨 HOT 1
- An in-range update of @types/node is breaking the build 🚨 HOT 1
- Switch from SnapDB to MedeaDown on [email protected] HOT 1
- Throw error when running, currently not sure what's the reproduce steps HOT 1
- Make sure there's only one FlashStore instance are writing database files
- [Feature] Add `compact()` to [email protected] with Medea DB HOT 1
- [feature] add SQLite as a backend for the next version HOT 1
- Question about `flockSync()` HOT 3
- Can not get data success HOT 11
- Get the total number (`size`) of the LevelDB keys
- Create a bundle to compatible with Browser environment with IndexDB
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flash-store.