This is an old question, but just in case someone stumbles on it and is specifically worried about the privacy implications of Notification Center, the answer is YES, OS X does keep a log of notifications on disk.
The format is an sqlite database, and it can be found inside this folder:
~/Library/Application Support/NotificationCenter
Inside you'll find at least one .db file for your account, i've seen some that OS X apparently considered corrupt at one point, so they're called .db.corrupt.
Running the strings command on this file will show you a load of binary data, quite a few "NSSomething" class names, and yes, your iMessages, file paths, twitter and facebook notifications and anything else that was sent to Notification Center by an app or the system.
If you want to get rid of that file at a specific point in time, you can kill usernoted temporarily (it'll restart itself) and delete the file in one shot (run this as your user account, not with sudo):
killall usernoted && rm ~/Library/Application\ Support/NotificationCenter/*.db
This will, 99% of the time, catch usernoted while it's temporarily not running, successfully delete the old database, and usernoted will make a new empty one when it starts again.
This isn't a good solution if you're really worried about privacy, but aside from encrypting your system or using a ramdisk for that folder, there really isn't a solution.
System logs, for example, are compressed and then automatically deleted after a week. However, System Diagnostic Reports (whether it be a stall, spin, hang, crash, or panic report) shouldn't be automatically deleted. If you reset the NVRAM immediately following a kernel panic, however, the report is deleted (the NVRAM temporarily stores the report until reboot; if it's reset, the contents are erased). Short of forcibly removing the files (using Onyx, a similar app, or manually), this is the only situation I can come up with off hand as to why a report would vanish.
As a makeshift solution, however, you can save the kernel panic reports as a separate file.
- From Console's menu bar, View > Show Log List
- Select the panic report (kernel_[longstring].panic) from the "System Diagnostic Reports" drop down
- File > Save a Copy As... > save file to folder of your choice
UPDATE:
Onyx is the most likely culprit, however, the option for clearing logs/reports is located in multiple places:
- Cleaning > Logs > System Diagnostic Reports
- Automation > Cleaning > Logs, including Diagnostic Reports
Uncheck these options if they are checked.
Best Answer
I just found the answer to this
you have to manually edit
/Library/LaunchDaemons/com.openssh.sshd.plist
change this part:
to this:
then reboot or restart sshd