Add new logger
This commit is contained in:
parent
445f976881
commit
fd93bf2146
13 changed files with 888 additions and 18 deletions
9
src/env.ts
Normal file
9
src/env.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
export const IS_TEST = process.env.NODE_ENV === 'test'
|
||||
export const IS_DEV = __DEV__
|
||||
export const IS_PROD = !IS_DEV
|
||||
export const LOG_DEBUG = process.env.EXPO_PUBLIC_LOG_DEBUG || ''
|
||||
export const LOG_LEVEL = (process.env.EXPO_PUBLIC_LOG_LEVEL || 'info') as
|
||||
| 'debug'
|
||||
| 'info'
|
||||
| 'warn'
|
||||
| 'error'
|
Loading…
Add table
Add a link
Reference in a new issue