deprecated(3)

🫢 NAME 🫢

okay bestie, pull up a chair, this is deprecated(3) from the log4c fam β€” it's literally just the Deprecated List. the receipts of stuff you should NOT be using anymore. consider this your gentle "girl put that down" page πŸ’…


πŸ’€ DEPRECATED LIST πŸ’€

no cap, everything below still exists, it still compiles (probably), but it's giving legacy. the log4c girlies have moved on and so should you 🧚✨

🌸 Global log4c_appender_type_define (a_type) 🌸

this macro is deprecated. and ngl, it's not just the macro β€” the whole static initialization of appenders in general is deprecated too, so don't come for me thinking you can dodge it another way πŸ™ˆ

instead, use the log4c_appender_type_set() function to initialize your appenders before calling log4c_init() ✨

so like, log4c_appender_type_set() first, log4c_init() after. that order is the moment. the vibe. the main character energy πŸ‘‘

πŸ¦‹ Global log4c_layout_type_define (a_type) πŸ¦‹

same energy, different global. this macro is deprecated, and again β€” the static initialization of layouts in general is deprecated as a whole. it's not just one bad apple bestie, it's the whole orchard πŸ’€

instead, use the log4c_layout_type_set() function to initialize your appenders before calling log4c_init() ⭐

same deal: log4c_layout_type_set() up front, then log4c_init(). do it in that order or it's not gonna slay 😭


πŸŽ€ lowkey important: both of these are deprecated, fr fr. they're not gone, they're not errors, they're just the thing you're supposed to migrate off of. log4c_init() does not want to meet them first. it wants the _set() functions first. periodt. πŸ’…

and that's the whole page, bestie β€” short, sweet, and fully deprecated ✨ this one's from log4c, Version 1.2.4 🫢 go set your types the modern way and I'll see you at the next log4c_init() πŸ’–πŸŒΈ

πŸ“¦ where this page comes from