How to implement a boot loading function

I want to implement a boot loading animation, the style is somewhat similar to linux.
In fact, it is to add one more screen to display the creation process of other components.
This requires getting the state of each component created.
I don’t know if it’s possible or not, would like some help, thanks a lot!

Here is a similar rendering: