Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Thanks for the link!
I got this and it was validated from the link but when i put that into nlog.config ASF wont start:
<?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">
<targets>
<!-- It colors all "Cards" instances with black txt over yellow bg -->
<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}}">
<highlight-word backgroundColor="Yellow" foregroundColor="Black" ignoreCase="true" text="Cards" wholeWords="true"/>
</target>
<target xsi:type="EventLog" name="EventLog" layout="${logger}|${message}${onexception:inner= ${exception:format=toString,Data}}" log="ArchiSteamFarm" source="Logger" />
<target xsi:type="File" name="File" deleteOldFileOnStartup="true" fileName="log.txt" layout="${date:format=yyyy-MM-dd HH\:mm\:ss}|${processname}-${processid}|${level:uppercase=true}|${logger}|${message}${onexception:inner= ${exception:format=toString,Data}}" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="ColoredConsole" />
<!-- <logger name="*" minlevel="Debug" writeTo="EventLog" /> -->
<logger name="*" minlevel="Debug" writeTo="File" />
</rules>
</nlog>
I was only given this code from my friend i did not do this myself.
Will do, thanks for the help and the xml validator link!
Test output here:
http://i.imgur.com/VcKndix.png
You forgot to close with </targets>, also each '<highlight-word' must end with '/>'. Xml is verified, also my nlog.config i've sent you is verified and was working properly. Of course, defining a target as 'event' does not break nlog.config if you're not going to use it, that's why i've commented it out in the <rules> section.
TL;DR:
There were errors in closing brackets. Try using this edited code block or my nlog.config example, either nlog.config is working 100% , no matter if you're running asf as a server or not.
Thanks a lot! Works fine now :]
Is there any way to color the whole line if the word is detected btw?
You're welcome, glad to be of help
Yes it's possible to highlight a whole line, try adding this code:
Also, you might wanna check this wiki page[github.com] for creating more complex conditions.
Ohh. Thanks a lot for all your help! Now it seems i can customize it like i always wanted :]