public Logging?

how do i make my server log something and update it every time someone says something, even if Local chat is enabled, and i want it to add [CMD] and [CHAT](If its a user command or just chat) in the front, followed by date, user, and steam id, and i also want it to be publicly viewable, is there a way to do that?

Yes there is a way to log commands but only a way to log certain console commands using lua, with out using slog.