about summary refs log tree commit diff
path: root/src/env.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-03 16:34:14 -0500
committerEric Bailey <git@esb.lol>2023-11-04 12:18:56 -0500
commitfd93bf2146b9c379945d3e315cb53cdb44887c8e (patch)
tree87b73749f8ca9a55bfc6b8041687ff085b2ed22a /src/env.ts
parent445f976881429f54758569de69bc4bce3f88c60b (diff)
downloadvoidsky-fd93bf2146b9c379945d3e315cb53cdb44887c8e.tar.zst
Add new logger
Diffstat (limited to 'src/env.ts')
-rw-r--r--src/env.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/env.ts b/src/env.ts
new file mode 100644
index 000000000..7b255e7ea
--- /dev/null
+++ b/src/env.ts
@@ -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'