--- system_service.module.org	2009-08-08 20:30:06.000000000 +0200
+++ system_service.module	2009-08-08 20:58:10.000000000 +0200
@@ -157,6 +157,46 @@ function system_service_service() {
         '#return'   => 'bool',
         '#help'     => t('Clear cache on remote site.'),
       ),
+
+    // system.watchdog
+    array(
+        '#method'   => 'system.watchdog',
+        '#callback' => 'system_service_watchdog_send',
+        '#access arguments' => array('send to watchdog from remote'),
+        '#file'     => array('file' => 'inc', 'module' => 'system_service'),
+        '#args'     => array(
+          array(
+            '#name'         => 'type',
+            '#type'         => 'string',
+            '#description'  => t('The category to which this message belongs.')
+          ),
+          array(
+            '#name'         => 'message',
+            '#type'         => 'string',
+            '#description'  => t('The message to store in the log. See t() for documentation on how $message and $variables interact. Keep $message translatable by not concatenating dynamic values into it!')
+          ),
+          array(
+            '#name'         => 'variables',
+            '#type'           => 'array',
+            '#optional'       => TRUE,
+            '#description'  => t('Array of variables to replace in the message on display or NULL if message is already translated or not possible to translate.')
+          ),
+          array(
+            '#name'         => 'severity',
+            '#type'           => 'string',
+            '#optional'       => TRUE,
+            '#description'  => t('The severity of the message, as per RFC 3164.')
+          ),
+          array(
+            '#name'         => 'link',
+            '#type'           => 'string',
+            '#optional'       => TRUE,
+            '#description'  => t('A link to associate with the message.')
+          ),
+        ),
+        '#return'   => 'bool',
+        '#help'     => t('Log a system message.'),
+    ),
   );
 }
 
@@ -166,4 +206,8 @@ function system_service_disable() {
 
 function system_service_enable() {
   cache_clear_all('services:methods', 'cache');
-}
\ No newline at end of file
+}
+
+function system_service_watchdog_send($type, $message, $variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL) {
+  watchdog($type, $message, $variables, $link);
+}
