aliasrc: method to disable logging on mac osx

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>