diff --git a/ecrire/inc/log.php b/ecrire/inc/log.php
index 33ace37a6ea5a3e9e31d37be25c1b9a1e9272579..a6a6f8c3e5fe4ce79499cfde266d38b84cbec192 100644
--- a/ecrire/inc/log.php
+++ b/ecrire/inc/log.php
@@ -36,7 +36,7 @@ function inc_log_dist($message, $logname=NULL, $logdir=NULL, $logsuf=NULL) {
 
 	// si spip_log() dans mes_options, poser dans spip.log
 	if (!defined('_DIR_LOG'))
-		$logfile = _DIR_RACINE._NOM_TEMPORAIRES_INACCESSIBLES.$logname.'.log';
+		$logfile = _DIR_RACINE._NOM_TEMPORAIRES_INACCESSIBLES.(test_espace_prive()?'prive_':'').$logname.'.log';
 
 	$rotate = 0;
 	$pid = '(pid '.@getmypid().')';