Skip to content

Commit 063e85d

Browse files
committed
improve logger documentation with more example
1 parent fc5cc46 commit 063e85d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: utilities/using-loggers/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ that is prepended on email subject.
110110
To change how email subject and email body are composed, you can extends [`TMailLogger` class](https://github.com/fanoframework/fano/blob/development/src/Libs/Logger/MailLoggerImpl.pas)
111111
and override its `buildSubject()` and `buildMessage()` protected methods.
112112

113+
[Fano Mail Logger](https://github.com/fanoframework/fano-mail-logger) is an example web application that demonstrates how to log messages as email.
114+
113115
### Logging to Database
114116

115117
`TDbLogger` is logger implementation that will output log message to database. It requires instance of `IRdbms` which responsible to do database operation. Read [Database](/database) section for more information.
@@ -138,6 +140,7 @@ logger := TDbLogger.create(
138140
'context' //context column name
139141
);
140142
```
143+
[Fano Db Logger](https://github.com/fanoframework/fano-db-logger) is an example web application that demonstrates how to log to MySQL database.
141144

142145
### Log to several medium
143146

@@ -401,3 +404,4 @@ logger := container['logger'] as ILogger;
401404
- [Error Handler](/error-handler)
402405
- [Database](/database)
403406
- [Example web application that log messages to MySQL database](https://github.com/fanoframework/fano-db-logger)
407+
- [Example web application that log messages as email](https://github.com/fanoframework/fano-mail-logger)

0 commit comments

Comments
 (0)