is there a DevMsg()?

Is there a way I can send Msgs, but only if developer 1 is on? Like debugoverlay but in console.

[lua]
function DevMsg( … )
if GetConVarNumber( “debug” ) == 0 then
return
end

local k, v

for k, v in ipairs{ … } do
MsgN( v )
end
end
[/lua]

Untested, but something like that I guess.