Skip to content
hertsch edited this page Sep 4, 2013 · 2 revisions

SyncData handles many data and files, all processes will be documented in a logfile.

The SyncData logfile is hosted in

/syncdata/logfile

Because this file is growing rapidly, SyncData create a backup if the logfile exceeds 5 MB and reset the original.

The logfile tell you the whole story, some examples (shortened):

[2013-09-03 17:50:19] SyncData.INFO: DISABLE KEYS for users {} []
[2013-09-03 17:50:19] SyncData.INFO: Inserted 1 rows into table users {} []
[2013-09-03 17:50:19] SyncData.INFO: ENABLE KEYS for users {} []
[2013-09-03 17:50:19] SyncData.INFO: MD5 checksum comparison for table users was 
successfull {} []
...
[2013-09-03 17:50:28] SyncData.INFO: Skipped directory D:/htdocs/lep114/temp {} []
[2013-09-03 17:50:29] SyncData.INFO: Processed 2379 files in 348 directories {} []
[2013-09-03 17:50:31] SyncData.ERROR: Can't create directory D:/htdocs/lep114/framework,
error message: 
mkdir() [<a href='function.mkdir'>function.mkdir</a>]: Permission denied {} []
[2013-09-03 17:50:31] SyncData.CRITICAL: Abort RESTORE of files, try to restore the 
previous saved tables and files {} []

To keep in contact with SyncData you can enable the email function of the logfile in syncdata.json:

"monolog": {
    "email": {
      "active": true,
      "level": 400,
      "to": "[email protected]",
      "subject": "SyncData Alert"
    }
}

By default active is set to false, just switch to true and type in the correct to email address.

Please check the email settings in swiftmailer.json before enabling this function.

The Monolog Logger is handling different log levels, where 400 indicate an ERROR. You will receive a email with the log entry, if an ERROR (400) or a CRITICAL (500) system condition occurs. Normally you should not change the level.

Next step: Security

Clone this wiki locally