-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get log info #116
Comments
Logger only write/send logs to providers. If you want to show logs in your app directly, you could use Event Provider to redir it to a TMemo o something similar, additionaly to log file. |
At this point how do you frame, what purpose does it serve, the Quick.Logger.Provider.Memory ? Basically, in my application, I would like to be able to quickly read created logs, even in memory in the Quick.Logger.Provider.Memory to build a timing report between a log of one type and one of the same type. |
Quick.Logger.Provider.Memory internally uses a TObjectList. You can access to "memory" logs with method GlobalLogMemoryProvider.AsStrings and iterate items. |
I've tried this very simple code but result is always and empty TStrings (TStringList):
|
Your code isn't correct. Please see how QuickLogger must be used. The concept is QuickLogger has a internal queue and it will dequeue messages to every provider in background to not affect you app performance. If you check just before messages are enqueued, no messages in the provider (Memory in this case):
|
Thank you very much.
|
This is not an issue but a question.
I'm trying the logger and my events are logged and saved automatically to a file. OK !
I'm need to access to logger data to create graphical report.
It's possible to access to logger data (directly on logger) instead to open log file ?
The text was updated successfully, but these errors were encountered: