Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Stefan de Vogelaere
2020-08-20 09:43:41 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6c02cea65dcd0ca9dd018a69c66ec0fc3abe19d4
6c02cea6
1 parent
40a868ce
Docs updated for logWriterCallback option
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
README.md
README.md
View file @
6c02cea
...
...
@@ -474,6 +474,22 @@ Get.config(
)
```
You can optionally redirect all the logging messages from Get. If you want to use your own favourite logging package and want to capture the logs there.
```
dart
GetMaterialApp
(
enableLog:
true
,
logWriterCallback:
localLogWriter
,
);
void
localLogWriter
(
String
text
,
{
bool
isError
=
false
})
{
// pass the message to your favourite logging package here
// please note that even if enableLog: false log messages will be pushed in this callback
// you get check the flag if you want through GetConfig.isLogEnable
}
```
## Video explanation of Other GetX Features
...
...
Please
register
or
login
to post a comment