You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.en.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ SITE_NAME="Marreta"
87
87
SITE_DESCRIPTION="Paywall hammer!"
88
88
SITE_URL=http://localhost
89
89
DNS_SERVERS=1.1.1.1,8.8.8.8
90
-
DEBUG=true
90
+
LOG_LEVEL=WARNING
91
91
SELENIUM_HOST=selenium-hub:4444
92
92
LANGUAGE=pt-br
93
93
```
@@ -99,8 +99,6 @@ docker-compose up -d
99
99
100
100
Done! It will be running at `http://localhost` 🎉
101
101
102
-
The `DEBUG` option when `true` will not generate cache!
103
-
104
102
## ⚙️ Customization
105
103
106
104
The configurations are organized in `data/`:
@@ -194,23 +192,32 @@ Important settings:
194
192
195
193
After setting up Selenium, make sure to set the `SELENIUM_HOST` variable in your environment to point to the Selenium hub (typically `selenium-hub:4444`).
196
194
197
-
### Error monitoring
195
+
### Logging System
196
+
197
+
Logs are stored in `app/logs/app.log` with automatic 7-day rotation.
198
198
199
-
Marreta uses [Hawk.so](https://hawk.so), an open-source error monitoring platform. To configure monitoring, add the following variables to your `.env` or docker:
199
+
Log settings available in `.env` or docker:
200
200
201
201
```env
202
-
HAWK_TOKEN=your_token
202
+
LOG_LEVEL=WARNING
203
203
```
204
204
205
-
You can host your own Hawk.so instance or use the hosted service at [hawk.so](https://hawk.so). The source code is available at [github.com/codex-team/hawk](https://github.com/codex-team/hawk).
205
+
Available log levels:
206
+
- DEBUG: Detailed information for debugging
207
+
- INFO: General operational information
208
+
- WARNING: Warnings that deserve attention (default)
209
+
- ERROR: Errors that don't stop operation
210
+
- CRITICAL: Critical errors that need immediate attention
Copy file name to clipboardExpand all lines: README.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ SITE_NAME="Marreta"
87
87
SITE_DESCRIPTION="Chapéu de paywall é marreta!"
88
88
SITE_URL=http://localhost
89
89
DNS_SERVERS=1.1.1.1,8.8.8.8
90
-
DEBUG=true
90
+
LOG_LEVEL=WARNING
91
91
SELENIUM_HOST=selenium-hub:4444
92
92
LANGUAGE=pt-br
93
93
```
@@ -99,8 +99,6 @@ docker-compose up -d
99
99
100
100
Pronto! Vai estar rodando em `http://localhost` 🎉
101
101
102
-
A opção de `DEBUG` quando `true` não irá gerar cache!
103
-
104
102
## ⚙️ Personalizando
105
103
106
104
As configurações estão organizadas em `data/`:
@@ -194,23 +192,32 @@ Configurações importantes:
194
192
195
193
Após configurar o Selenium, certifique-se de definir a variável `SELENIUM_HOST` no seu ambiente para apontar para o hub do Selenium (geralmente `selenium-hub:4444`).
196
194
197
-
### Monitoramento de erros
195
+
### Sistema de Logs
196
+
197
+
Os logs são armazenados em `app/logs/app.log` com rotação automática a cada 7 dias.
198
198
199
-
O Marreta utiliza o [Hawk.so](https://hawk.so), uma plataforma de código aberto para monitoramento de erros. Para configurar o monitoramento, adicione as seguintes variáveis ao seu `.env` ou docker:
199
+
Configurações de log disponíveis no `.env` ou docker:
200
200
201
201
```env
202
-
HAWK_TOKEN=seu_token
202
+
LOG_LEVEL=WARNING
203
203
```
204
204
205
-
Você pode hospedar sua própria instância do Hawk.so ou usar o serviço hospedado em [hawk.so](https://hawk.so). O código fonte está disponível em [github.com/codex-team/hawk](https://github.com/codex-team/hawk).
205
+
Níveis de log disponíveis:
206
+
- DEBUG: Informações detalhadas para debug
207
+
- INFO: Informações gerais sobre operações
208
+
- WARNING: Avisos que merecem atenção (padrão)
209
+
- ERROR: Erros que não interrompem a operação
210
+
- CRITICAL: Erros críticos que precisam de atenção imediata
0 commit comments