forked from ZhangMingZhao1/StreamerHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ZhangMingZhao1#133 from umuoy1/master
支持日志推送<微信,邮箱>;优化日志;删除package-lock.json
- Loading branch information
Showing
30 changed files
with
408 additions
and
5,586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ templates/info.json | |
download/* | ||
.cache | ||
*.png | ||
package-lock.json |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
global.config = require('../templates/info.json') |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
// 0 不在线 1 在线 | ||
let RoomStatus = new Map<string,0|1>() | ||
export { | ||
RoomStatus | ||
} | ||
export const RoomStatus = new Map<string,0|1>() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
declare namespace NodeJS { | ||
export interface Global { | ||
config: import("./type/config").Config, | ||
app: import("index").App | ||
} | ||
} | ||
export interface global {} | ||
declare global { | ||
var config: import("./type/config").Config | ||
var app: import("index").App | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import * as log4js from "log4js"; | ||
|
||
const logLevel = require('../../templates/info.json').StreamerHelper.debug ? "debug" : "info" | ||
|
||
log4js.configure({ | ||
appenders: { | ||
cheese: { | ||
type: "file", | ||
filename: process.cwd() + "/logs/artanis.log", | ||
maxLogSize: 20971520, | ||
backups: 10, | ||
encoding: "utf-8", | ||
}, | ||
memory: { | ||
type: "file", | ||
filename: process.cwd() + "/logs/memory.log", | ||
maxLogSize: 20971520, | ||
backups: 10, | ||
encoding: "utf-8", | ||
}, | ||
console: { | ||
type: "console" | ||
} | ||
}, | ||
categories: { | ||
cheese: { | ||
appenders: ["cheese", "console"], level: logLevel | ||
}, | ||
memory: { | ||
appenders: ["memory"], level: "info" | ||
}, | ||
check: { | ||
appenders: ["console"], level: "debug" | ||
}, | ||
default: { | ||
appenders: ["cheese", "console"], level: logLevel | ||
}, | ||
}, | ||
}); | ||
|
||
export { log4js } |
Oops, something went wrong.