Merge branch 'develop-external-logging' of

https://github.com/GPCsolutions/dolibarr into
GPCsolutions-develop-external-logging

Conflicts:
	composer.json
This commit is contained in:
Laurent Destailleur 2016-09-02 21:51:25 +02:00
commit 0e4b4ee321
55 changed files with 80 additions and 373 deletions

View File

@ -2,14 +2,22 @@
"name": "dolibarr/dolibarr",
"type": "project",
"description": "Dolibarr ERP & CRM is a modern and easy to use web software to manage your business",
"keywords": ["erp","crm","invoice","sme","proposal","order","stock"],
"homepage": "http://www.dolibarr.org",
"keywords": [
"erp",
"crm",
"invoice",
"sme",
"proposal",
"order",
"stock",
"agenda"
],
"homepage": "https://www.dolibarr.org",
"license": "GPL-3.0+",
"support": {
"issues": "https://github.com/Dolibarr/dolibarr/issues",
"forum": "http://www.dolibarr.org/forum",
"wiki": "http://wiki.dolibarr.org",
"irc": "irc://chat.freenode.net/dolibarr",
"forum": "https://www.dolibarr.org/forum",
"wiki": "https://wiki.dolibarr.org",
"source": "https://github.com/Dolibarr/dolibarr"
},
"config": {
@ -48,6 +56,5 @@
"ext-zip": "ODT and Excel support",
"ext-xml": "Excel support",
"firephp/firephp-core": "Logging to Firebug console support",
"raven/raven": "Sentry logging server support"
}
}

View File

@ -27,6 +27,8 @@
require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
global $conf;
if (!$user->admin) accessforbidden();
$langs->load("admin");
@ -40,35 +42,38 @@ $activeModules = array();
if (defined('SYSLOG_HANDLERS')) $activeModules = json_decode(constant('SYSLOG_HANDLERS'));
$dir = dol_buildpath('/core/modules/syslog/');
$dirsyslogs = array_merge(array('/core/modules/syslog/'), $conf->modules_parts['syslog']);
foreach ($dirsyslogs as $reldir) {
$dir = dol_buildpath($reldir, 0);
$newdir = dol_osencode($dir);
if (is_dir($newdir)) {
$handle = opendir($newdir);
if (is_dir($dir))
{
$handle = opendir($dir);
if (is_resource($handle)) {
$var = true;
if (is_resource($handle))
{
$var=true;
while (($file = readdir($handle)) !== false) {
if (substr($file, 0, 11) == 'mod_syslog_' && substr($file, dol_strlen($file) - 3, 3) == 'php') {
$file = substr($file, 0, dol_strlen($file) - 4);
while (($file = readdir($handle))!==false)
{
if (substr($file, 0, 11) == 'mod_syslog_' && substr($file, dol_strlen($file)-3, 3) == 'php')
{
$file = substr($file, 0, dol_strlen($file)-4);
require_once $dir.$file.'.php';
require_once $newdir . $file . '.php';
$module = new $file;
// Show modules according to features level
if ($module->getVersion() == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) continue;
if ($module->getVersion() == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) continue;
if ($module->getVersion() == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
continue;
}
if ($module->getVersion() == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
continue;
}
$syslogModules[] = $file;
}
}
closedir($handle);
}
}
}

View File

@ -51,7 +51,7 @@ class Conf
public $standard_menu;
public $modules = array(); // List of activated modules
public $modules_parts = array('css'=>array(),'js'=>array(),'tabs'=>array(),'triggers'=>array(),'login'=>array(),'substitutions'=>array(),'menus'=>array(),'theme'=>array(),'sms'=>array(),'tpl'=>array(),'barcode'=>array(),'models'=>array(),'societe'=>array(),'hooks'=>array(),'dir'=>array());
public $modules_parts = array('css'=>array(),'js'=>array(),'tabs'=>array(),'triggers'=>array(),'login'=>array(),'substitutions'=>array(),'menus'=>array(),'theme'=>array(),'sms'=>array(),'tpl'=>array(),'barcode'=>array(),'models'=>array(),'societe'=>array(),'hooks'=>array(),'dir'=>array(), 'syslog' =>array());
var $logbuffer = array();
@ -123,6 +123,8 @@ class Conf
*/
function setValues($db)
{
global $conf;
dol_syslog(get_class($this)."::setValues");
/*
@ -571,24 +573,38 @@ class Conf
}
// We init log handlers
if (defined('SYSLOG_HANDLERS')) $handlers = json_decode(constant('SYSLOG_HANDLERS'));
else $handlers = array();
foreach ($handlers as $handler)
{
$file = DOL_DOCUMENT_ROOT.'/core/modules/syslog/'.$handler.'.php';
if (!file_exists($file))
{
throw new Exception('Missing log handler file '.$handler.'.php');
if (defined('SYSLOG_HANDLERS')) {
$handlers = json_decode(constant('SYSLOG_HANDLERS'));
} else {
$handlers = array();
}
foreach ($handlers as $handler) {
$handler_files = array();
$dirsyslogs = array_merge(array('/core/modules/syslog/'), $conf->modules_parts['syslog']);
foreach ($dirsyslogs as $reldir) {
$dir = dol_buildpath($reldir, 0);
$newdir = dol_osencode($dir);
if (is_dir($newdir)) {
$file = $newdir . $handler . '.php';
if (file_exists($file)) {
$handler_files[] = $file;
}
}
}
require_once $file;
if (empty($handler_files)) {
throw new Exception('Missing log handler file ' . $handler . '.php');
}
require_once $handler_files[0];
$loghandlerinstance = new $handler();
if (!$loghandlerinstance instanceof LogHandlerInterface)
{
if (!$loghandlerinstance instanceof LogHandlerInterface) {
throw new Exception('Log handler does not extend LogHandlerInterface');
}
if (empty($this->loghandlers[$handler])) $this->loghandlers[$handler]=$loghandlerinstance;
if (empty($this->loghandlers[$handler])) {
$this->loghandlers[$handler] = $loghandlerinstance;
}
}
}
}

View File

@ -1,195 +0,0 @@
<?php
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
require_once DOL_DOCUMENT_ROOT.'/core/modules/syslog/logHandler.php';
if (file_exists(DOL_DOCUMENT_ROOT.'/includes/raven/raven/lib/Raven/Autoloader.php'))
{
require_once DOL_DOCUMENT_ROOT.'/includes/raven/raven/lib/Raven/Autoloader.php';
Raven_Autoloader::register();
}
/**
* Class to manage logging to Sentry
*
* @see https://docs.getsentry.com/on-premise/clients/php/
*/
class mod_syslog_sentry extends LogHandler implements LogHandlerInterface
{
/**
* @var string Log handler code
*/
public $code = 'sentry';
/**
* Return name of logger
*
* @return string Name of logger
*/
public function getName()
{
return 'Sentry';
}
/**
* Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
*
* @return string
*/
public function getVersion()
{
return 'dolibarr';
}
/**
* Content of the info tooltip.
*
* @return false|string
*/
public function getInfo()
{
global $langs;
return $langs->trans('SyslogSentryFromProject');
}
/**
* Is the module active ?
*
* @return boolean
*/
public function isActive()
{
return file_exists(DOL_DOCUMENT_ROOT.'/includes/raven/raven/lib/Raven/Autoloader.php');
}
/**
* Return array of configuration data
*
* @return array Return array of configuration data
*/
public function configure()
{
global $langs;
return array(
array(
'constant' => 'SYSLOG_SENTRY_DSN',
'name' => $langs->trans('SyslogSentryDSN'),
'default' => '',
'attr' => 'size="100" placeholder="https://<key>:<secret>@app.getsentry.com/<project>"'
)
);
}
/**
* Return if configuration is valid
*
* @return array Array of errors. Empty array if ok.
*/
public function checkConfiguration()
{
global $conf;
$errors = array();
$dsn = $conf->global->SYSLOG_SENTRY_DSN;
try {
$client = new Raven_Client(
$dsn,
array('curl_method' => 'sync')
);
} catch (InvalidArgumentException $ex) {
$errors[] = "ERROR: There was an error parsing your DSN:\n " . $ex->getMessage();
}
if (!$errors) {
// Send test event and check for errors
$client->captureMessage('TEST: Sentry syslog configuration check', null, Raven_Client::DEBUG);
$last_error = $client->getLastError();
if ($last_error) {
$errors[] = $last_error;
}
}
if (!$errors) {
// Install handlers
$error_handler = new Raven_ErrorHandler($client);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();
}
return $errors;
}
/**
* Export the message
*
* @param array $content Array containing the info about the message
* @return void
*/
public function export($content)
{
if (! $this->isActive()) {
return;
}
global $conf;
$dsn = $conf->global->SYSLOG_SENTRY_DSN;
$client = new Raven_Client(
$dsn,
array('curl_method' => 'exec')
);
$client->user_context(array(
'username' => ($content['user'] ? $content['user'] : ''),
'ip_address' => $content['ip']
));
$client->tags_context(array(
'version' => DOL_VERSION
));
$client->registerSeverityMap(array(
LOG_EMERG => Raven_Client::FATAL,
LOG_ALERT => Raven_Client::FATAL,
LOG_CRIT => Raven_Client::ERROR,
LOG_ERR => Raven_Client::ERROR,
LOG_WARNING => Raven_Client::WARNING,
LOG_NOTICE => Raven_Client::WARNING,
LOG_INFO => Raven_Client::INFO,
LOG_DEBUG => Raven_Client::DEBUG,
));
if (substr($content['message'], 0, 3) === 'sql') {
global $db;
$query = substr($content['message'], 4, strlen($content['message']));
$client->captureQuery(
$query,
$client->translateSeverity($content['level']),
$db->type
);
} else {
$client->captureMessage(
$content['message'],
null,
$client->translateSeverity($content['level'])
);
}
}
}

View File

@ -1311,8 +1311,6 @@ SyslogFilename=اسم الملف ومسار
YouCanUseDOL_DATA_ROOT=يمكنك استخدام DOL_DATA_ROOT / dolibarr.log لملف الدخول في Dolibarr "وثائق" دليل. يمكنك أن تحدد مسارا مختلفا لتخزين هذا الملف.
ErrorUnknownSyslogConstant=ثابت %s ليس ثابت سيسلوغ معروفة
OnlyWindowsLOG_USER=نوافذ يعتمد فقط LOG_USER
SyslogSentryDSN=ترقب DSN
SyslogSentryFromProject=DSN من مشروع ترقب بك
##### Donations #####
DonationsSetup=وحدة الإعداد للتبرع
DonationsReceiptModel=قالب من استلام التبرع

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Име на файла и пътя
YouCanUseDOL_DATA_ROOT=Можете да използвате DOL_DATA_ROOT / dolibarr.log за лог файл в Dolibarr директория &quot;документи&quot;. Можете да зададете различен път, за да се съхранява този файл.
ErrorUnknownSyslogConstant=Постоянни %s не е известен Syslog постоянно
OnlyWindowsLOG_USER=Windows поддържа само LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Настройка на модул Дарение
DonationsReceiptModel=Шаблон на получаване на дарение

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Nom i ruta de l'arxiu
YouCanUseDOL_DATA_ROOT=Utilitza DOL_DATA_ROOT/dolibarr.log per un fitxer de registre en la carpeta documents de Dolibarr. Tanmateix, es pot definir una carpeta diferent per guardar aquest fitxer.
ErrorUnknownSyslogConstant=La constant %s no és una constant syslog coneguda
OnlyWindowsLOG_USER=Windows només suporta LOG_USER
SyslogSentryDSN=DSN Sentry
SyslogSentryFromProject=DSN del teu projecte Sentry
##### Donations #####
DonationsSetup=Configuració del mòdul donacions
DonationsReceiptModel=Plantilla de rebut de donació

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Název souboru a cesta
YouCanUseDOL_DATA_ROOT=Můžete použít DOL_DATA_ROOT / dolibarr.log pro soubor protokolu Dolibarr &quot;Dokumenty&quot; adresáře. Můžete nastavit jinou cestu k uložení tohoto souboru.
ErrorUnknownSyslogConstant=Konstantní %s není známo, Syslog konstantní
OnlyWindowsLOG_USER=Windows podporuje pouze LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Darování modul nastavení
DonationsReceiptModel=Vzor darovací přijetí

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Filnavn og sti
YouCanUseDOL_DATA_ROOT=Du kan bruge DOL_DATA_ROOT / dolibarr.log for en logfil i Dolibarr "dokumenter" mappen. Du kan indstille en anden vej til at gemme denne fil.
ErrorUnknownSyslogConstant=Konstant %s er ikke en kendt syslog konstant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation modul opsætning
DonationsReceiptModel=Skabelon for donationen modtagelse

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Dateiname und-pfad
YouCanUseDOL_DATA_ROOT=Sie können DOL_DATA_ROOT/dolibarr.log als Protokolldatei in Ihrem Dokumentenverzeichnis verwenden. Bei Bedarf können Sie auch den Pfad der Datei anpassen.
ErrorUnknownSyslogConstant=Konstante %s ist nicht als Protokoll-Konstante definiert
OnlyWindowsLOG_USER=Windows unterstützt nur LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN Ihres Sentry Projekts
##### Donations #####
DonationsSetup=Spendenmoduleinstellungen
DonationsReceiptModel=Vorlage für Spendenquittungen

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1323,8 +1323,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Nombre y ruta del archivo
YouCanUseDOL_DATA_ROOT=Puede utilizar DOL_DATA_ROOT/dolibarr.log para un registro en el directorio "documentos" de Dolibarr. Sin embargo, puede establecer un directorio diferente para guardar este archivo.
ErrorUnknownSyslogConstant=La constante %s no es una constante syslog conocida
OnlyWindowsLOG_USER=Windows sólo soporta LOG_USER
SyslogSentryDSN=DSN Sentry
SyslogSentryFromProject=DSN de su proyecto Sentry
##### Donations #####
DonationsSetup=Configuración del módulo donaciones
DonationsReceiptModel=Modelo recepción de donaciones

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Faili nimi ja rada
YouCanUseDOL_DATA_ROOT=Võid kasutada DOL_DATA_ROOT/dolibarr.log Dolibarri "documents" kausta faili salvestamiseks, aga logifaili salvestamiseks võib ka mõnda muud rada kasutada.
ErrorUnknownSyslogConstant=Konstant %s ei ole tuntud Syslogi konstant
OnlyWindowsLOG_USER=Windows toetab vaid LOG_USER direktiivi
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Annetuste mooduli seadistamine
DonationsReceiptModel=Annetuse kviitungi mall

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Fitxategiaren izena eta kokapena
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=%s konstantea ez da Syslog-eko konstante ezaguna
OnlyWindowsLOG_USER=Windows-ek LOG_USER soilik jasaten du
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=نام فایل و مسیر
YouCanUseDOL_DATA_ROOT=شما می توانید DOL_DATA_ROOT / dolibarr.log برای یک فایل در "اسناد" Dolibarr دایرکتوری استفاده کنید. شما می توانید راه های مختلفی را برای ذخیره این فایل را.
ErrorUnknownSyslogConstant=٪ ثابت است ثابت های Syslog شناخته نشده است
OnlyWindowsLOG_USER=ویندوز تنها پشتیبانی از LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=راه اندازی ماژول کمک مالی
DonationsReceiptModel=الگو از دریافت کمک مالی

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Tiedoston nimi ja polku
YouCanUseDOL_DATA_ROOT=Voit käyttää DOL_DATA_ROOT / dolibarr.log varten lokitiedoston Dolibarr "asiakirjoihin" hakemistoon. Voit valita eri reitin tallentaa tiedoston.
ErrorUnknownSyslogConstant=Constant %s ei ole tunnettu syslog vakio
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Lahjoitus-moduulin asetukset
DonationsReceiptModel=Malline lahjoituksen vastaanottamisesta

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Nom et chemin du fichier
YouCanUseDOL_DATA_ROOT=Vous pouvez utiliser DOL_DATA_ROOT/dolibarr.log pour un journal dans le répertoire "documents" de Dolibarr. Vous pouvez néanmoins définir un chemin différent pour stocker ce fichier.
ErrorUnknownSyslogConstant=La constante %s n'est pas une constante syslog connue
OnlyWindowsLOG_USER=Windows ne prend en charge que LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN de votre projet Sentry
##### Donations #####
DonationsSetup=Configuration du module Dons
DonationsReceiptModel=Modèles de reçu de dons

View File

@ -1311,8 +1311,6 @@ SyslogFilename=שם קובץ ונתיב
YouCanUseDOL_DATA_ROOT=ניתן להשתמש DOL_DATA_ROOT / dolibarr.log עבור קובץ יומן בספרייה Dolibarr &quot;מסמכים&quot;. ניתן להגדיר בדרך אחרת כדי לאחסן קובץ זה.
ErrorUnknownSyslogConstant=%s קבועים אינו ידוע Syslog מתמיד
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=מודול תרומה ההתקנה
DonationsReceiptModel=תבנית של קבלת תרומה

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=A fájl nevét és elérési útvonalát
YouCanUseDOL_DATA_ROOT=Használhatja DOL_DATA_ROOT / dolibarr.log egy log fájlt Dolibarr &quot;Dokumentumok&quot; mappa. Beállíthatjuk, más utat kell tárolni ezt a fájlt.
ErrorUnknownSyslogConstant=Constant %s nem ismert Syslog állandó
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Adomány modul beállítása
DonationsReceiptModel=Sablon az adomány átvételét

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Skráarnafn og slóði
YouCanUseDOL_DATA_ROOT=Þú getur notað DOL_DATA_ROOT / dolibarr.log fyrir annálinn í Dolibarr "skjöl" skrá. Þú getur stillt mismunandi leið til að geyma þessa skrá.
ErrorUnknownSyslogConstant=Constant %s er ekki þekktur skrifað fasti
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Safnast mát skipulag
DonationsReceiptModel=Snið af málefnið berst

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Nome file e percorso
YouCanUseDOL_DATA_ROOT=È possibile utilizzare DOL_DATA_ROOT/dolibarr.log come file di log per la directory "documenti". È anche possibile impostare un percorso diverso per tale file.
ErrorUnknownSyslogConstant=La costante %s è sconosciuta a syslog.
OnlyWindowsLOG_USER=Solo utenti Windows supportano LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Impostazioni modulo donazioni
DonationsReceiptModel=Modello di ricevuta per donazioni

View File

@ -1311,8 +1311,6 @@ SyslogFilename=ファイル名とパス
YouCanUseDOL_DATA_ROOT=あなたがDolibarr &quot;ドキュメント&quot;ディレクトリ内のログ·ファイルのDOL_DATA_ROOT / dolibarr.logを使用することができます。このファイルを格納する別のパスを設定することができます。
ErrorUnknownSyslogConstant=定数%sは知られているSyslogの定数ではありません。
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=寄付モジュールのセットアップ
DonationsReceiptModel=寄付金の領収書のテンプレート

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Failo pavadinimas ir kelias
YouCanUseDOL_DATA_ROOT=Galite naudoti DOL_DATA_ROOT/dolibarr.log prisijungimo failui Dolibarr "dokuments" kataloge. Galite nustatyti kitokį kelią šio failo saugojimui.
ErrorUnknownSyslogConstant=Konstanta %s yra nežinoma Syslog konstanta
OnlyWindowsLOG_USER=Windows palaiko tik LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Aukų modulio nuostatos
DonationsReceiptModel=Aukų įplaukų šablonas

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Faila nosaukums un ceļš
YouCanUseDOL_DATA_ROOT=Jūs varat izmantot DOL_DATA_ROOT / dolibarr.log uz log failu Dolibarr "dokumenti" direktorijā. Jūs varat iestatīt citu ceļu, lai saglabātu šo failu.
ErrorUnknownSyslogConstant=Constant %s nav zināms Syslog konstante
OnlyWindowsLOG_USER=Windows atbalsta tikai LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Ziedojumu moduļa uzstādīšana
DonationsReceiptModel=Veidne ziedojuma saņemšanu

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Filnavn og bane
YouCanUseDOL_DATA_ROOT=Du kan bruke DOL_DATA_ROOT / dolibarr.log som loggfil i Dolibarr "dokumenter"-mappen. Du kan angi en annen bane for å lagre denne filen.
ErrorUnknownSyslogConstant=Konstant %s er ikke en kjent syslog-konstant
OnlyWindowsLOG_USER=Windows støtter bare LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN fra ditt Sentry-prosjekt
##### Donations #####
DonationsSetup=Oppsett av Donasjonsmodulen
DonationsReceiptModel=Mal for donasjonskvittering

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Bestandsnaam en -pad
YouCanUseDOL_DATA_ROOT=U kunt DOL_DATA_ROOT/dolibarr.log gebruiken voor een logbestand in de Dolibarr "documenten"-map. U kunt ook een ander pad gebruiken om dit bestand op te slaan.
ErrorUnknownSyslogConstant=Constante %s is geen bekende 'syslog' constante
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donatiemoduleinstellingen
DonationsReceiptModel=Sjabloon van donatie-ontvangst

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Nazwa pliku i ścieżka
YouCanUseDOL_DATA_ROOT=Możesz użyć DOL_DATA_ROOT / dolibarr.log do pliku w Dolibarr "dokumenty" katalogu. Można ustawić inną ścieżkę do przechowywania tego pliku.
ErrorUnknownSyslogConstant=Stała %s nie jest znany syslog stałej
OnlyWindowsLOG_USER=System Windows obsługuje tylko LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Darowizna konfiguracji modułu
DonationsReceiptModel=Szablon otrzymania wpłaty

View File

@ -1011,7 +1011,6 @@ SyslogFilename=Nome do arquivo e caminho
YouCanUseDOL_DATA_ROOT=Você pode usar DOL_DATA_ROOT/dolibarr.log para um arquivo de log no diretório dos "documentos" do Dolibarr.
ErrorUnknownSyslogConstant=A Constante %s não é conhecida pelas constantes do Syslog
OnlyWindowsLOG_USER=Somente Windows suporta LOG_USER
SyslogSentryFromProject=DSN do seu projeto Sentry
DonationsSetup=Configurações do módulo de doações
DonationsReceiptModel=Templates de recibos de doação
BarcodeSetup=Configurações de código de barras

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Nome e caminho do Ficheiro
YouCanUseDOL_DATA_ROOT=Pode utilizar DOL_DATA_ROOT/dolibarr.log para um log na pasta 'documentos' de Dolibarr.
ErrorUnknownSyslogConstant=A constante %s não é uma constante syslog conhecida
OnlyWindowsLOG_USER=O Windows suporta apenas LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Configuração do módulo Bolsas
DonationsReceiptModel=Modelo de recibo de doação

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Nume fişier şi calea
YouCanUseDOL_DATA_ROOT=Puteţi folosi DOL_DATA_ROOT / dolibarr.log pentru un fişier de log în Dolibarr "Documente" director. Aveţi posibilitatea să setaţi o altă cale de a păstra acest fişier.
ErrorUnknownSyslogConstant=Constant %s nu este un cunoscut syslog constant
OnlyWindowsLOG_USER=Windows suportă numai LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donatii modul de configurare
DonationsReceiptModel=Format de donatie la primirea

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Имя файла и путь
YouCanUseDOL_DATA_ROOT=Вы можете использовать DOL_DATA_ROOT / dolibarr.log в лог-файл в Dolibarr "документы" каталог. Вы можете установить различные пути для хранения этого файла.
ErrorUnknownSyslogConstant=Постоянная %s не известны журнала постоянная
OnlyWindowsLOG_USER=Windows&copy; поддерживает только LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Пожертвования модуль настройки
DonationsReceiptModel=Шаблон дарения получения

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Názov súboru a cesta
YouCanUseDOL_DATA_ROOT=Môžete použiť DOL_DATA_ROOT / dolibarr.log pre súbor denníka Dolibarr &quot;Dokumenty&quot; adresára. Môžete nastaviť inú cestu na uloženie tohto súboru.
ErrorUnknownSyslogConstant=Konštantná %s nie je známe, Syslog konštantný
OnlyWindowsLOG_USER=Windows podporuje iba LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Darovanie modul nastavenia
DonationsReceiptModel=Vzor darovacej prijatie

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Ime datoteke in pot
YouCanUseDOL_DATA_ROOT=Za log datoteko v Dolibarr dokumentni mapi lahko uporabite DOL_DATA_ROOT/dolibarr.log. Za shranjevanje te datoteke lahko nastavite tudi drugačno pot.
ErrorUnknownSyslogConstant=Konstanta %s ni znana syslog konstanta
OnlyWindowsLOG_USER=Windowsi podpirajo samo LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Nastanitev modula za donacije
DonationsReceiptModel=Predloga računa za donacijo

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN iz Vašeg Sentry projekta
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Filnamn och sökväg
YouCanUseDOL_DATA_ROOT=Du kan använda DOL_DATA_ROOT / dolibarr.log för en loggfil i Dolibarr &quot;dokument&quot; katalogen. Du kan ställa in en annan väg för att lagra den här filen.
ErrorUnknownSyslogConstant=Konstant %s är inte en känd syslog konstant
OnlyWindowsLOG_USER=Endast Windows stöder LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation modul setup
DonationsReceiptModel=Mall för donation kvitto

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=ชื่อแฟ้มและเส้นทาง
YouCanUseDOL_DATA_ROOT=คุณสามารถใช้ DOL_DATA_ROOT / dolibarr.log สำหรับล็อกไฟล์ใน Dolibarr "เอกสาร" ไดเรกทอรี คุณสามารถตั้งค่าเส้นทางที่แตกต่างกันในการจัดเก็บไฟล์นี้
ErrorUnknownSyslogConstant=% s คงไม่ได้เป็นที่รู้จักกันอย่างต่อเนื่อง Syslog
OnlyWindowsLOG_USER=Windows เท่านั้นสนับสนุน LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=บริจาคการติดตั้งโมดูล
DonationsReceiptModel=แม่แบบที่ได้รับการบริจาค

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Dosya adı ve yolu
YouCanUseDOL_DATA_ROOT=Dolibarrdaki “belgeler” dizinindeki bir log (günlük) dosyası için DOL_DATA_ROOT/dolibarr.log u kullanabilirsiniz. Bu dosyayı saklamak için farklı bir yol (path) kullanabilirsiniz.
ErrorUnknownSyslogConstant=%s Değişmezi bilinen bir Syslog değişmezi değildir
OnlyWindowsLOG_USER=Windows yalnızca LOG_USER'ı destekler
SyslogSentryDSN=Nöbetçi DSN
SyslogSentryFromProject=Nöbetçi projenizdeki DSN
##### Donations #####
DonationsSetup=Bağış modülü kurulumu
DonationsReceiptModel=Bağış makbuzu şablonu

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=File name and path
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Donation module setup
DonationsReceiptModel=Template of donation receipt

View File

@ -1311,8 +1311,6 @@ SyslogFilename=Tên tập tin và đường dẫn
YouCanUseDOL_DATA_ROOT=You can use DOL_DATA_ROOT/dolibarr.log for a log file in Dolibarr "documents" directory. You can set a different path to store this file.
ErrorUnknownSyslogConstant=Constant %s is not a known Syslog constant
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=Cài đặt module Tài trợ
DonationsReceiptModel=Mẫu biên nhận Tài trợ

View File

@ -1311,8 +1311,6 @@ SyslogFilename=文件名称和路径
YouCanUseDOL_DATA_ROOT=您可以使用 DOL_DATA_ROOT/dolibarr.log 来表示“documents”目录下的日志文件。您可以设置不同的路径来保存此文件。
ErrorUnknownSyslogConstant=常量 %s 不是已知的 Syslog 常数
OnlyWindowsLOG_USER=Windows 仅支持 LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=捐赠模块设置
DonationsReceiptModel=捐赠收据模板

View File

@ -1311,8 +1311,6 @@ SyslogFilename=文件名稱和路徑
YouCanUseDOL_DATA_ROOT=你可以使用DOL_DATA_ROOT /可在Dolibarr日誌文件dolibarr.log“文件”目錄。你可以設置一個不同的路徑來存儲該文件。
ErrorUnknownSyslogConstant=恆%s不是一個已知的syslog常數
OnlyWindowsLOG_USER=Windows only supports LOG_USER
SyslogSentryDSN=Sentry DSN
SyslogSentryFromProject=DSN from your Sentry project
##### Donations #####
DonationsSetup=捐贈模組設置
DonationsReceiptModel=模板的捐贈收據

View File

@ -1293,16 +1293,6 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print '<script type="text/javascript" src="'.$pathckeditor.$jsckeditor.($ext?'?'.$ext:'').'"></script>'."\n";
}
// Raven.js for client-side Sentry logging support
if (array_key_exists('mod_syslog_sentry', $conf->loghandlers)) {
print '<!-- Includes Raven.js for Sentry -->' . "\n";
print '<script src="' . DOL_URL_ROOT . '/includes/raven-js/dist/raven.min.js"></script>' . "\n";
print '<script src="' . DOL_URL_ROOT . '/includes/raven-js/plugins/native.js"></script>' . "\n";
if (! defined('DISABLE_JQUERY')) {
print '<script src="' . DOL_URL_ROOT . '/includes/raven-js/plugins/jquery.js"></script>' . "\n";
}
}
// Global js function
print '<!-- Includes JS of Dolibarr -->'."\n";
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/core/js/lib_head.js.php?version='.urlencode(DOL_VERSION).($ext?'&amp;'.$ext:'').'"></script>'."\n";
@ -1388,23 +1378,6 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
print '<body id="mainbody">' . "\n";
if ($conf->use_javascript_ajax)
{
// Raven.js for client-side Sentry logging support
if (array_key_exists('mod_syslog_sentry', $conf->loghandlers) && ! empty($conf->global->SYSLOG_SENTRY_DSN))
{
// Filter out secret key
$dsn = parse_url($conf->global->SYSLOG_SENTRY_DSN);
$public_dsn = $dsn['scheme'] . '://' . $dsn['user'] .'@' . $dsn['host'] . $dsn['path'];
print '<script type="text/javascript">' . "\n";
print "Raven.config('" . $public_dsn . "').install()\n";
print "Raven.setUserContext({username: '" . $user->login . "'})\n";
print "Raven.setTagsContext({version: '" . DOL_VERSION . "'})\n";
print "</script>\n";
}
}
/*
* Top menu
*/