In AceConsole-3.0 there is a local function Print which puts out a nice colorized addon name in front on the message you are printing. Very nice.
But. I want to tweak it.
Since it is a local function in AceConsole, I don't think I can just put a local function of the same name in my addon. Also because it is local, it feels like hooking won't work - especially since I want to replace it, not call before or after?
For now I've just also taken the AceConsole:Print and AceConsole:Printf methods into my addon and now my local version of print itself works but it feels like I'm missing something?
If you could enlighten me that would be great. Thanks again helping this newb dust off his programming brain!
What, exactly, do you want to change? The colors, the name being printed, the formatting...?
If you're trying to change the name displayed, overwriting the 'name' field in your composed addon table will do it, and I don't believe it'll screw up anything else. Alternately, replacing getmetatable(your_addon_table).__tostring with a function returning what you want will also have the same effect.
Colors are hardcoded, so you'd have to declare a new your_add_table:Print[f] pair of functions and replace the ones "inherited" ("mixed in"?) from AceConsole.