diff --git a/README.md b/README.md index 3c64e7f..5b9f8df 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,16 @@ const app = new Elysia({ name: 'Logixlysia Example' }).use( logixlysia({ - ip: false, - customLogMessage: - '🦊 {now} {level} {duration} {method} {pathname} {status} {message} {ip}' + config: { + ip: true, + customLogFormat: + '🦊 {now} {level} {duration} {method} {pathname} {status} {message} {ip}', + logFilter: { + level: ['ERROR', 'WARNING'], + status: [500, 404], + method: 'GET' + } + } }) )