Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
35 lines
751 B
TypeScript
35 lines
751 B
TypeScript
// Simple logger utility for mobile app
|
|
// In production, this can be replaced with a proper logging service
|
|
|
|
const isDevelopment = __DEV__;
|
|
|
|
export const logger = {
|
|
log: (...args: any[]) => {
|
|
if (isDevelopment) {
|
|
console.log('[LOG]', ...args);
|
|
}
|
|
},
|
|
error: (...args: any[]) => {
|
|
if (isDevelopment) {
|
|
console.error('[ERROR]', ...args);
|
|
}
|
|
// In production, send to error tracking service
|
|
},
|
|
warn: (...args: any[]) => {
|
|
if (isDevelopment) {
|
|
console.warn('[WARN]', ...args);
|
|
}
|
|
},
|
|
info: (...args: any[]) => {
|
|
if (isDevelopment) {
|
|
console.info('[INFO]', ...args);
|
|
}
|
|
},
|
|
debug: (...args: any[]) => {
|
|
if (isDevelopment) {
|
|
console.debug('[DEBUG]', ...args);
|
|
}
|
|
},
|
|
};
|
|
|