2022-10-12 21:53:11 +02:00
|
|
|
---
|
|
|
|
title: Store.logs
|
|
|
|
---
|
|
|
|
|
|
|
|
A **Store** is initialized with a `logs` property that holds logging data.
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::note
|
2022-10-12 21:53:11 +02:00
|
|
|
If errors are logged, FreeSewing will not try to layout the pattern.
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|
2022-10-12 21:53:11 +02:00
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```js
|
|
|
|
logs: {
|
|
|
|
debug: [],
|
|
|
|
info: [],
|
|
|
|
warning: [],
|
|
|
|
errors: []
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
|
|
|
Users can override the default logging, so don't assume this is where logs end up.
|
|
|
|
|
2024-02-07 07:31:00 -08:00
|
|
|
That's why, you should always use the [Store.log methods](/reference/store-methods#store-methods-we-maintain) to log.
|
2022-10-12 21:53:11 +02:00
|
|
|
|