Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
aerphouse
ApolloERP
提交
a6df3e7e
ApolloERP
项目概览
aerphouse
/
ApolloERP
大约 1 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ApolloERP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
a6df3e7e
编写于
4月 18, 2024
作者:
A
apolloerp
提交者:
Gitee
4月 18, 2024
浏览文件
操作
浏览文件
下载
差异文件
!4 debug
Merge pull request !4 from apolloerp/aerpDev
上级
a72198c0
30ecbd52
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
37 addition
and
40 deletion
+37
-40
Ae.Shop.Api/Ae.Shop.Api/nlog.debug.config
Ae.Shop.Api/Ae.Shop.Api/nlog.debug.config
+37
-40
未找到文件。
Ae.Shop.Api/Ae.Shop.Api/nlog.debug.config
浏览文件 @
a6df3e7e
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
nlog
xmlns
=
"http://www.nlog-project.org/schemas/NLog.xsd"
xmlns
:
xsi
=
"http://www.w3.org/2001/XMLSchema-instance"
autoReload
=
"true"
autoReload
=
"true"
internalLogLevel
=
"Off"
>
<
extensions
>
<
add
assembly
=
"NLog.Web.AspNetCore"
/>
...
...
@@ -10,36 +10,37 @@
</
extensions
>
<
targets
async
=
"true"
>
<
target
xsi
:
type
=
"Null"
name
=
"blackhole"
/>
<
target
xsi
:
type
=
"Mail"
name
=
"infoMail"
smtpServer
=
"smtp.qiye.aliyun.com"
smtpPort
=
"465"
smtpAuthentication
=
"Basic"
smtpUserName
=
"service@ApolloErp.cn"
smtpPassword
=
"Abcd@1234"
<
target
name
=
"mail"
xsi
:
type
=
"Mail"
smtpServer
=
"smtp.aliyun.com"
smtpPort
=
"465"
smtpAuthentication
=
"Basic"
smtpUserName
=
"aerp@aliyun.com"
smtpPassword
=
"ApolloErp1234"
enableSsl
=
"true"
addNewLines
=
"true"
from
=
"
service@ApolloErp.cn
"
to
=
"
devMonitor@ApolloErp.cn
"
subject
=
"${appdomain} 线上 服务报错通知"
header
=
"************************************************"
body
=
"
level
: ${
level
}
${
newline
}
date
: ${
date
}
${
newline
}
application
: ${
appdomain
}
${
newline
}
message
: ${
message
}
${
newline
}
logger
: ${
logger
}
${
newline
}
callSite
: ${
callsite
:
className
=
true
:
methodName
=
true
:
skipFrames
=
1
}
${
newline
}
exception
:
${
exception
:
tostring
}
"
footer
=
"************************************************"
/>
from
=
"
aerp@aliyun.com
"
to
=
"
aerp@aliyun.com
"
subject
=
"${appdomain} 线上 服务报错通知"
header
=
"************************************************"
body
=
"
level
: ${
level
}
${
newline
}
date
: ${
date
}
${
newline
}
application
: ${
appdomain
}
${
newline
}
message
: ${
message
}
${
newline
}
logger
: ${
logger
}
${
newline
}
callSite
: ${
callsite
:
className
=
true
:
methodName
=
true
:
skipFrames
=
1
}
${
newline
}
exception
:${
newline
}
${
exception
:
tostring
}
"
footer
=
"************************************************"
/>
<
target
name
=
"file"
xsi
:
type
=
"File"
fileName
=
"${basedir}/logs/${shortdate}_${level}.log"
>
<
target
name
=
"file"
xsi
:
type
=
"File"
fileName
=
"${basedir}/logs/${shortdate}_${level}
_auth_api
.log"
>
<
layout
xsi
:
type
=
"JsonLayout"
>
<
attribute
name
=
"type"
layout
=
"api"
/>
<
attribute
name
=
"date"
layout
=
"${longdate}"
/>
...
...
@@ -53,15 +54,11 @@
<
target
name
=
"db"
xsi
:
type
=
"Database"
dbProvider
=
"MySql.Data.MySqlClient.MySqlConnection, MySql.Data"
connectionString
=
"server=localhost;Database=system_log;user id=ApolloErp;Password=ApolloErp1234;SslMode=none"
>
connectionString
=
"server=db.aerp.com.cn;Database=system_log;user id=ApolloErp;Password=ApolloErp1234;SslMode=none"
>
<
commandText
>
insert
into
sys_log
(
application
,
date
,
level
,
message
,
logger
,
callsite
,
exception
)
values
(
@
application
, @
date
, @
level
, @
message
,
@
logger
, @
callSite
, @
exception
);
insert
into
sys_log
(
application
,
date
,
level
,
message
,
logger
,
callsite
,
exception
)
values
(@
application
, @
date
, @
level
, @
message
,@
logger
, @
callSite
, @
exception
);
</
commandText
>
<
parameter
name
=
"@application"
layout
=
"${appdomain}"
/>
<
parameter
name
=
"@date"
layout
=
"${date}"
/>
...
...
@@ -72,9 +69,9 @@
<
parameter
name
=
"@exception"
layout
=
"${exception:tostring}"
/>
</
target
>
<
target
xsi
:
type
=
"Redis"
name
=
"redis"
host
=
"
localhost"
port
=
"6379"
password
=
"ApolloErp1234"
db
=
"
0"
key
=
"logstash_api"
dataType
=
"list"
>
<
target
xsi
:
type
=
"Redis"
name
=
"redis"
host
=
"
redis.aerp.com.cn"
port
=
"6379"
password
=
"ApolloErp1234"
db
=
"10
0"
key
=
"logstash_api"
dataType
=
"list"
>
<
layout
xsi
:
type
=
"JsonLayout"
>
<
attribute
name
=
"type"
layout
=
"
service
"
/>
<
attribute
name
=
"type"
layout
=
"
api
"
/>
<
attribute
name
=
"date"
layout
=
"${longdate}"
/>
<
attribute
name
=
"level"
layout
=
"${level:uppercase=true}"
/>
<
attribute
name
=
"application"
layout
=
"${appdomain}"
/>
...
...
@@ -89,9 +86,9 @@
<!--
Skip
Microsoft
logs
and
so
log
only
own
logs
-->
<
logger
name
=
"Microsoft.*"
minLevel
=
"Trace"
writeTo
=
"blackhole"
final
=
"true"
/>
<
logger
name
=
"System.*"
minLevel
=
"Trace"
writeTo
=
"blackhole"
final
=
"true"
/>
<
logger
name
=
"*"
minlevel
=
"Error"
writeTo
=
"file"
/>
<
logger
name
=
"*"
minlevel
=
"Error"
writeTo
=
"file
,db,mail
"
/>
<
logger
name
=
"*"
minlevel
=
"Info"
writeTo
=
"db"
/>
<
logger
name
=
"*"
minlevel
=
"Error"
writeTo
=
"infoMail"
/>
<!--<
logger
name
=
"*"
minlevel
=
"Info"
writeTo
=
"redis"
/>-->
</
rules
>
</
nlog
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录