mirror of
https://github.com/archlinux/aur.git
synced 2026-02-17 17:52:50 +01:00
disable logging to file on new installations
This commit is contained in:
parent
45f7df03cb
commit
ff7b1dd4d1
3 changed files with 3 additions and 6 deletions
|
|
@ -2,14 +2,12 @@
|
|||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<targets>
|
||||
<target xsi:type="ColoredConsole" name="ColoredConsole" detectConsoleAvailable="false" layout="${date:format=yyyy-MM-dd HH\:mm\:ss}|${processname}-${processid}|${level:uppercase=true}|${logger}|${message}${onexception:inner= ${exception:format=toString,Data}}" />
|
||||
<target xsi:type="File" name="File" deleteOldFileOnStartup="true" fileName="/var/log/asf.log" layout="${date:format=yyyy-MM-dd HH\:mm\:ss}|${processname}-${processid}|${level:uppercase=true}|${logger}|${message}${onexception:inner= ${exception:format=toString,Data}}" />
|
||||
<!-- Below becomes active when ASF is started with server parameter -->
|
||||
<!-- <target type="History" name="History" layout="${date:format=yyyy-MM-dd HH\:mm\:ss}|${processname}-${processid}|${level:uppercase=true}|${logger}|${message}${onexception:inner= ${exception:format=toString,Data}}" maxCount="20" /> -->
|
||||
</targets>
|
||||
|
||||
<rules>
|
||||
<logger name="*" minlevel="Debug" writeTo="ColoredConsole" />
|
||||
<logger name="*" minlevel="Debug" writeTo="File" />
|
||||
<!-- Below becomes active when ASF is started with server parameter -->
|
||||
<!-- <logger name="*" minlevel="Debug" writeTo="History" /> -->
|
||||
</rules>
|
||||
|
|
|
|||
6
PKGBUILD
6
PKGBUILD
|
|
@ -10,7 +10,7 @@ license=('Apache')
|
|||
depends=('dotnet-runtime')
|
||||
makedepends=('p7zip')
|
||||
changelog=changelog
|
||||
backup=('var/lib/asf/config/ASF.json')
|
||||
backup=('var/lib/asf/config/ASF.json' 'usr/lib/asf/NLog.config')
|
||||
install=${pkgname}.install
|
||||
source=("${pkgname}-${pkgver}.zip::https://github.com/JustArchi/ArchiSteamFarm/releases/download/${pkgver}/ASF-generic.zip"
|
||||
"${pkgname}.sh"
|
||||
|
|
@ -20,10 +20,10 @@ source=("${pkgname}-${pkgver}.zip::https://github.com/JustArchi/ArchiSteamFarm/r
|
|||
"NLog.config")
|
||||
sha256sums=('d7dc905e8164cc3911b5fd5d622cf681bf3e1e5f75604ad8ae396ec05f7ae423'
|
||||
'8d76996c1024b80704b25af8a8800ef3f8a8a518d19c2a1e85ba62b58b22cdfd'
|
||||
'e63b55f65e1c0c935945bd788f47a77be82e96a409b64660b5a96b9c190964ff'
|
||||
'e605b05ece2e86d02277b3a703f92b74817fd494dbd6195173dc20bbf33fb14a'
|
||||
'dcaf43586125e07488e338438158097b31ba335fcb238127dfb785a41d223f49'
|
||||
'883373be23f6f49ae597f61c1310d8cd45bce7c3ee1b5d456ffc9fedbe7dd486'
|
||||
'bfefd169626c3aff072e361a0517f2fbc0d2d403c8c61e1659c0bd0174d3d14a')
|
||||
'9a10e9e6ff88fcc00000c12464ae2b650a3f075ef7e440088414b46c41214ee4')
|
||||
noextract=("${source[@]%%::*}")
|
||||
|
||||
prepare() {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ Group=asf
|
|||
ExecStart=/usr/bin/dotnet /usr/lib/asf/ArchiSteamFarm.dll --server --path=/var/lib/asf
|
||||
ProtectSystem=true
|
||||
ReadWritePaths=/var/lib/asf
|
||||
ReadWritePaths=/var/log/asf.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue