- Know in which order they are rendered.
- Know what is in the value when the component is rendered.
- Standardize console log customization.
Using jilog, you can confirm the below.
- what the time spent from log before.
- what the order run the log.
- what the value is in the running.
import { jiLog } from 'jilog/lib'
const SampleComponent = (props) => {
/**
* [SampleComopnent][LOG: 0][TIME: XX milliseconds]
* "{example: 'example log'}"
*/
jiLog({example: 'example log'},'SampleComopnent', 'greenyellow')
/**
* [LOG: 1][TIME: XX milliseconds]
* "{example: 'example log'}"
*/
jiLog({example: 'example log'},'', 'greenyellow')
return (
<div>
<p>SampleComponent</p>
</div>
)
}
- Accumulate logs and write them to a file after a certain time