Skip to content

Commit 7a9fc31

Browse files
authored
Update readme.md (#94)
1 parent a5bd57e commit 7a9fc31

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,34 @@ Once the installation is complete, you will be able to access **Log Viewer** dir
8080
By default, it is available at: `/log-viewer` on your domain.
8181

8282
## Configuration
83+
Default configuration: [(Configuration reference)](docs/configuration-reference.md)
84+
```yaml
85+
fd_log_viewer:
86+
home_route: null
87+
88+
log_files:
89+
monolog:
90+
type: monolog
91+
name: Monolog
92+
finder:
93+
in: "%kernel.logs_dir%"
94+
name: "*.log"
95+
depth: '== 0'
96+
ignoreUnreadableDirs: true
97+
followLinks: false
98+
downloadable: false
99+
deletable: false
100+
start_of_line_pattern: '/^\[\d{4}-\d{2}-\d{2}[^]]*]\s+\S+\.\S+:/'
101+
log_message_pattern: '/^\[(?P<date>[^\]]+)\]\s+(?P<channel>[^\.]+)\.(?P<severity>[^:]+):\s+(?P<message>.*)\s+(?P<context>[[{].*?[\]}])\s+(?P<extra>[[{].*?[\]}])\s+$/s'
102+
date_format: "Y-m-d H:i:s"
103+
104+
hosts:
105+
localhost:
106+
name: Local
107+
host: null
108+
```
109+
110+
Read more:
83111
- [Adding more monolog directories](docs/adding-more-monolog-directories.md)
84112
- [Modifying monolog configuration](docs/modifying-monolog-configuration.md)
85113
- [Disabling the default monolog configuration](docs/disabling-default-monolog-configuration.md)
@@ -89,4 +117,3 @@ By default, it is available at: `/log-viewer` on your domain.
89117
- [Adding remote hosts](docs/adding-remote-hosts.md)
90118
- [Configuring the back home url](docs/configuring-the-back-home-route.md)
91119
- [Advanced search queries](docs/advanced-search-queries.md)
92-
- [Full configuration reference](docs/configuration-reference.md)

0 commit comments

Comments
 (0)