Log a warning when using deprecated functions.