Version 1.1.1 - Adding Repository
This commit is contained in:
parent
33fea0cae2
commit
c3bb65e012
11
main.js
11
main.js
@ -6,9 +6,11 @@ const fs = require("fs")
|
||||
const path = require("path")
|
||||
const basic = require("./basics")
|
||||
|
||||
|
||||
setup()
|
||||
|
||||
/**
|
||||
* Configuration of Loguix
|
||||
*/
|
||||
function setup() {
|
||||
|
||||
if(!fs.existsSync(__dirname + path.sep + "logs" + path.sep)) {
|
||||
@ -20,7 +22,7 @@ function setup() {
|
||||
|
||||
} else {
|
||||
|
||||
console.log("[Logs] -Erreur d'écriture par manque de permission ")
|
||||
console.log("[Logs] - Erreur d'écriture par manque de permission ")
|
||||
console.log(err)
|
||||
}
|
||||
|
||||
@ -32,9 +34,8 @@ function setup() {
|
||||
flags: 'a'
|
||||
});
|
||||
|
||||
|
||||
logStream.write("[" + require("../../package.json").name + "@"+ require("../../package.json").version + "] - [" + basic.getDate(true) + "]" + "\n")
|
||||
logStream.write("Subsonics-Web by Raphix" + "\n")
|
||||
process.config.variables.
|
||||
logStream.write("[" + npm_package_name + "@"+ npm_package_version + "] - [" + basic.getDate(true) + "]" + "\n")
|
||||
logStream.write("----------------------------------------------------------------" + "\n")
|
||||
|
||||
process.on('uncaughtException', (err) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user