Repository navigation
Introduces Aixlog logging framework - #1200
Conversation
ceab889 to
5712741
Compare
|
Here is an updated view of startup (before you launch a model). Here is under systemd: |
|
And here is what model load/unload looks like now. |
bitgamma
left a comment
There was a problem hiding this comment.
looks good to me, but we really need to consider moving to a proper logging framework or we will drown in log-level checks and log-level parameter passed in every function
reading the change set I feel this |
Any suggestions for a particular cross platform framework? |
jeremyfowers
left a comment
There was a problem hiding this comment.
My design philosophy for logging is that the user can't be trusted to set the right log level before they have a problem, so the only supported log level should be debug.
I'm wary of any logging choice that would allow users to hide debug info.
I'm also wary of the sheer amount of changes here: devs now need to remember to add a if (log_level_ == "debug" || log_level_ == "trace") virtually every time they add a cout? Is there not a more streamlined way to accomplish the same goal?
|
haven't used any recently, but this looks pretty straightforward: https://github.com/badaix/aixlog |
|
while I agree with you in principle, for a long running server instance the log file can hog the system (and kill SSDs long term) so by default the logs should be minimal. I feel this shows we need a logging framework that makes this much more manageable though
|
As @bitgamma points out this will fill up SSDs really quick. Most software runs at INFO by default and has a mechanism to increase it if a problem comes up. I don't think we should be straying from that.
Let me look at switching to a logging framework. It's unfortunate I found bugs in the process of doing this that are fixed and we should get in, but hopefully switching to a framework isn't too much difficulty. |
|
I integrated that framework suggested by @bitgamma . Have a look again. I personally like this a lot better. |
|
I need to double check all the places that |
c8c196d to
265c3ba
Compare
|
I'll wait until you are done with removing the |
e9854ab to
573ad2a
Compare
Should be good to go now, it's rebased on the other big one that just merged (flm-groundwork) |
bitgamma
left a comment
There was a problem hiding this comment.
looks good to me. I removed a couple of left over instances of unused log_level, I hope you don't mind.
|
If this PR does all of these things please update the title and description:
|
7e2e4fa to
da34b32
Compare
|
|
The data format I'm not worried about - we're going to axe cache on upgrade. A lot of the others make sense. Since you have it on /review already maybe just have it fix em and send it and we can review again. |
da34b32 to
27acc1e
Compare
I've incorporated solutions for most of this and rebased. |
5db3ca8 to
f448b99
Compare
|
@jeremyfowers Since this touches nearly all of the code base, can you review this again for merging soon? It needs a rebase hourly otherwise.. |
252f069 to
2ddd040
Compare
Sorry, doing it now. |
82cf3a2 to
f763bbe
Compare
b91de33 to
eaf4c22
Compare
Ryzen AI LLM and FLM are marked as yes in the logs and this is totally wrong. The functions just check if the hardware is there which `npu_available` already does. Drop the lies.
eaf4c22 to
9ac68bc
Compare
* Remove messages about LLM software that just check hardware Ryzen AI LLM and FLM are marked as yes in the logs and this is totally wrong. The functions just check if the hardware is there which `npu_available` already does. Drop the lies. * Change to AIXLOG logging framework * Update tray app to use AIXLOG logging in some places
Uh oh!
There was an error while loading. Please reload this page.