Jump to content
  • 0

Chat log not being created


Question

Posted

Hello guys.

 

Im using one of the most recent L2JFrozen revision FYI.

 

I've been recently having the issue of many trash talking players on a server. As i assume everyone gets at some point. And i'm just trying to cut it directly by simple banning everyone that is being disrespectul.

 

The thing is, my chat.log file is not recording. 

 

I've set up on developer.propertier file the part where was LogChat = False to true, and even made an attempt to change directly on the source file.

 

I went to say2.java file (which is the file on this rev that controls all say actions) and found the following line:

 

		if (Config.LOG_CHAT)
		{
			final LogRecord record = new LogRecord(Level.INFO, _text);
			record.setLoggerName("chat");
			
			if (_type == TELL)
			{
				record.setParameters(new Object[]
				{
					CHAT_NAMES[_type],
					"[" + activeChar.getName() + " to " + _target + "]"
				});
			}
			else
			{
				record.setParameters(new Object[]
				{
					CHAT_NAMES[_type],
					"[" + activeChar.getName() + "]"
				});
			}
			
			_logChat.log(record);
		}

Since it's not recognizing the Config.LOG_CHAT, i tried simply to replace it to a simple verification like:

 if (activeChar.getLevel() > 0 )

then keep everything else the same.

 

I even changed the permissions on the log folder for users to have full access to create files, but that wasnt it.

 

And what is even weirder to me, is that GMAudit, karmadrop and some other files are created without any problems.

 

Anyone can help?

11 answers to this question

Recommended Posts

  • 0
Posted

Your log.cfg contains necessary properties for log4j but don't uses in L2J Frozen. You need get him content and put into logger.properties file. This file uses as property definer for log4j.

 

Or rename logger.properties to logger.properties.bak and rename log.cfg to logger.properties. for check my assuming.

 

I think it will work.

  • 0
Posted

Replace this code by path "com.l2jfrozen.logs.ChatFilter.java"

public class ChatFilter implements Filter
{
	@Override
	public boolean isLoggable(final LogRecord record)
	{
		return record.getLoggerName() == "chat";
	}
}

to

public class ChatFilter implements Filter
{
	@Override
	public boolean isLoggable(final LogRecord record)
	{
		return record.getLoggerName().equalsIgnoreCase("chat");
	}
}

 

  • 0
Posted (edited)

@Rootware Hello, thanks for the reply and sorry for only being able to respond today. It's been a busy week for me.

 

I tested the changes you suggested on ChatFilter.java, sadly, that did not solve the problem.

 

Is there any other java file/code regarding chatlog of my revision you'd like to see? I can send it. But i'm still not getting any chat logs.

 

What i find weird as i mentioned earlier, is that GMAudit, Karmadrop, loginserver/gameserver logs get created without any problems. Everything is set to true on developer.properties and i even tested an extra line on Say2.java to register the log for everyone above lv 1 as a way to test but still nothing.

 

Edit:

Here's a list of the log files i get from gameserver:

log/loggerOut.log

log/game/_all.txt

log/game/karma_dieDrop.txt

log/game/New_chars.txt

log/game/RaidBossSpawnManager.txt

log/GMAudit/GM-Name [GM-Id].txt

 

And that's it.

I even tried activating the items log on developer.properties (the one it warns can be too heavy) just so see if it would create the file, but nothing.

 

Thanks in advance for trying to help, by the way.

 

Edited by dextroy
  • 0
Posted

The maximal size of log files is defined in logger.properties. I don't see more difference between GMAudit and ChatLog loggers. Try to replace in this place ChatLogger to GMAudit for checking correct calling the logger feature overall in this place.

  • 0
Posted (edited)
1 hour ago, Rootware said:

The maximal size of log files is defined in logger.properties. I don't see more difference between GMAudit and ChatLog loggers. Try to replace in this place ChatLogger to GMAudit for checking correct calling the logger feature overall in this place.

But where would i attempt that replace? There are multiple files that call for ChatLog on java. On developer properties they already call both. Im trying to understand what you're suggesting me to try.

 

As for logger.properties. I haven't touched here's their codes:

log4j.rootLogger=INFO, console,  file

log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.threshold=DEBUG
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%-5p %m%n

log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.append=true
log4j.appender.file.file=log/loggerOut.log
log4j.appender.file.threshold=INFO
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

 

 And here's the log.cfg file that's also in the folder:

############################################################
#      Global properties
############################################################

# "handlers" specifies a comma separated list of log Handler 
# classes.  These handlers will be installed during VM startup.
# Note that these classes must be on the system classpath.
# By default we only configure a ConsoleHandler, which will only
# show messages at the INFO and above levels.
#handlers = java.util.logging.ConsoleHandler

# To also add the FileHandler, use the following line instead.
handlers = java.util.logging.FileHandler,java.util.logging.ConsoleHandler,\
           com.l2jfrozen.logs.ErrorLogHandler
chat.handlers = com.l2jfrozen.logs.ChatLogHandler
chat.useParentHandlers = false
gmaudit.handlers = com.l2jfrozen.logs.GMAuditLogHandler
gmaudit.useParentHandlers = false
item.handlers = com.l2jfrozen.logs.ItemLogHandler
item.useParentHandlers = false
audit.handlers = com.l2jfrozen.logs.AuditLogHandler
audit.useParentHandlers = false


# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers.  For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level = CONFIG

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = log/java%u.log
java.util.logging.FileHandler.limit = 500000
java.util.logging.FileHandler.count = 5
java.util.logging.FileHandler.formatter = com.l2jfrozen.logs.FileLogFormatter
java.util.logging.FileHandler.level = CONFIG

# Limit the message that are printed on the console to INFO and above.
java.util.logging.ConsoleHandler.level = FINER
java.util.logging.ConsoleHandler.formatter = com.l2jfrozen.logs.ConsoleLogFormatter

# log errors (exceptions)
com.l2jfrozen.logs.ErrorLogHandler.pattern = log/error%u.log
com.l2jfrozen.logs.ErrorLogHandler.count = 5
com.l2jfrozen.logs.ErrorLogHandler.formatter = java.util.logging.SimpleFormatter
com.l2jfrozen.logs.ErrorLogHandler.filter = com.l2jfrozen.logs.ErrorFilter
com.l2jfrozen.logs.ErrorLogHandler.level = CONFIG

# log chats
com.l2jfrozen.logs.ChatLogHandler.pattern = log/chat.log
com.l2jfrozen.logs.ChatLogHandler.formatter = com.l2jfrozen.logs.ChatLogFormatter
com.l2jfrozen.logs.ChatLogHandler.filter = com.l2jfrozen.logs.ChatFilter
com.l2jfrozen.logs.ChatLogHandler.append = true
com.l2jfrozen.logs.ChatLogHandler.level = INFO

# log GM Audit
com.l2jfrozen.logs.GMAuditLogHandler.pattern = log/gmaudit.log
com.l2jfrozen.logs.GMAuditLogHandler.formatter = com.l2jfrozen.logs.GMAuditFormatter
com.l2jfrozen.logs.GMAuditLogHandler.filter = com.l2jfrozen.logs.GMAuditFilter
com.l2jfrozen.logs.GMAuditLogHandler.append = true
com.l2jfrozen.logs.GMAuditLogHandler.level = INFO

# log items
com.l2jfrozen.logs.ItemLogHandler.pattern = log/item.log
com.l2jfrozen.logs.ItemLogHandler.formatter = com.l2jfrozen.logs.ItemLogFormatter
com.l2jfrozen.logs.ItemLogHandler.filter = com.l2jfrozen.logs.ItemFilter
com.l2jfrozen.logs.ItemLogHandler.append = true
com.l2jfrozen.logs.ItemLogHandler.level = INFO

# audit
com.l2jfrozen.logs.AuditLogHandler.pattern = log/audit.log
com.l2jfrozen.logs.AuditLogHandler.formatter = com.l2jfrozen.logs.AuditFormatter
com.l2jfrozen.logs.AuditLogHandler.filter = com.l2jfrozen.logs.AuditFilter
com.l2jfrozen.logs.AuditLogHandler.append = true
com.l2jfrozen.logs.AuditLogHandler.level = INFO


############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
com.l2jfrozen.gameserver.level = CONFIG
com.l2jfrozen.loginserver.level = CONFIG
com.l2jfrozen.gameserver.Connection.level = CONFIG
com.l2jfrozen.gameserver.serverpackets.level = FINER
com.l2jfrozen.gameserver.clientpackets.level = FINER
com.l2jfrozen.gameserver.model.L2Character.level = FINER
com.l2jfrozen.gameserver.skills.SkillsEngine.level = WARNING

# Alt Privileges Administration
AltPrivilegesAdmin.pattern = log/admin-commands.log
AltPrivilegesAdmin.formatter = com.l2jfrozen.logs.FileLogFormatter
AltPrivilegesAdmin.append = true
AltPrivilegesAdmin.level = CONFIG

 

Edit:

Just noticed something else bit weird. The log.cfg file calls for com.l2jfrozen.logs.GMAuditFormatter and com.l2jfrozen.logs.GMAuditFilter

 

However, on com.l2jfrozen.logs there's no GMAudit files, only those:

image.png.5b09d8909ee0c87e751b7f1a6a38be88.png

 

I searched for GMAuditFormatter on the source and couldn't find any other file mentioning that besides the log.cfg. So, i don't know exactly where it's running the code to generate the GMAudit.

Edited by dextroy
  • 0
Posted

I don't seeing reason for no logging chat messages. I posted to you all difference between logger properties. Check the Item logging for correct work by the way, because this one 100% the same but with another file name storing.

  • 0
Posted
2 minutes ago, Rootware said:

I don't seeing reason for no logging chat messages. I posted to you all difference between logger properties. Check the Item logging for correct work by the way, because this one 100% the same but with another file name storing.

I tried, but it did not log item drops aswell. I've been trying to dig all over java codes trying to find something but i couldnt find why one is logging and the other one isn't.

 

Would you know what are all the java files related to creating a specific log so i can compare them? I mean, besides those on com.l2jfrozen.logs?

  • 0
Posted

Try to put into logger.properties file the content from log.cfg with overwritting existing content. Possible, L2J Frozen developers forget change this. At this moment logger.properties don't contains informations about logger handlers. that's possible the main reason of missed files which uses specific logging handlers. E.g. GMAudit uses direct storing into the file all info ignores native logger.

  • 0
Posted
42 minutes ago, Rootware said:

Try to put into logger.properties file the content from log.cfg with overwritting existing content. Possible, L2J Frozen developers forget change this. At this moment logger.properties don't contains informations about logger handlers. that's possible the main reason of missed files which uses specific logging handlers. E.g. GMAudit uses direct storing into the file all info ignores native logger.

Ok but just to understand properly, do i do this with the logger.properties - the notepad file only?

 

Or do i have do look for something on the java codes to implement? If so, what files on the java code should i be looking for? I will test all your suggestions on my next maintenance.

  • 0
Posted
51 minutes ago, Rootware said:

Your log.cfg contains necessary properties for log4j but don't uses in L2J Frozen. You need get him content and put into logger.properties file. This file uses as property definer for log4j.

 

Or rename logger.properties to logger.properties.bak and rename log.cfg to logger.properties. for check my assuming.

 

I think it will work.

Ok thanks!

 

I will attempt that on my next maintenance. I'll be back here tomorrow to say if that has worked for me. Thanks for all the tips so far =)

  • 0
Posted

Ok returning with the results.

 

Switching the files, did not work.

 

However, adding log.cfg lines in addition to those on logger.properties worked like a charm!!

 

Thank you so much for the help and all the tips.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • General Trackers :   IPTorrents invite IPTorrents account 1 tb TorrentLeech invite Torrentleech account 1 tb buffer  InTheShaDow ( ITS ) account Acid-lounge invite Torrentday invite Crnaberza account Abn.Lol account Limit-of-eden account Norbits account Xspeeds account Xspeeds invite Bemaniso invite Wigornot account Bithumen invite Filelist account Funfile invite AvistaZ invite Potuk.net invite ResurrectThe.Net invite GrabThe.Info invite Greek-Team invite LinkoManija invite Fano.in account tracker.czech-server.com Speed.cd invite Arab-torrents.net account Arabscene.me account Scenetime account 4thd.xyz invite Btarg.com.ar account Dedbit invite Estone.cc account Speedapp invite Finvip invite Fluxzone account GigaTorrents account Gimmepeers account Haidan.video invite Mojblink account Mycarpathians invite Newinsane.info account Oscarworld.xyz account Peers.FM invite Pt.msg.vg account Ransackedcrew account Redemption invite Scene-rush account Seedfile.io invite Teracod invite Torrent.ai account Torrentmasters invite Ttsweb invite X-files invite X-ite invite Ncore account TorrentHR account Rptorrents account BwTorrents account Superbits invite Krazyzone account Immortalseed account Tntracker invite Pt.eastgame.org account Bitturk account Rstorrent account Tracker.btnext invite Torrent-turk.de account BeiTai.PT account Pt.keepfrds account 52pt.site account Pthome account Torrentseeds account Aystorrent account Blues-brothers.biz invite Divteam account Thesceneplace invite CinemaMovies.pl account Brasiltracker account Patiodebutacas account Newheaven.nl account  Swarmazon.club invite Bc-reloaded account Crazyspirits account Silentground invite Omg.wtftrackr invite Milkie.cc invite Breathetheword invite Madsrevolution account Chilebt account Yubraca account Uniongang.tv account Frboard account Exvagos account Diablotorrent account Microbit account Carp-hunter.hu account Majomparade.eu account Theshinning.me account Youiv.info account Dragonworld-reloaded account Sharewood.tv account Partis.si account Digitalcore.club invite Fuzer.me account R3vuk.wtf invite Ztracker account 1 tb buffer 3changtrai account Best-core.info account Bitsite.us account Eliteunitedcrew invite Exitorrent.org account Tophos invite Torrent.lt account Sktorrent.eu account Oshen account Blackhattorrent account Pirata.digital account Esharenet account Ohmenarikgi.la Pirate-share account Immortuos account Kiesbits account Cliente.amigos-share.club account Broadcity invite Ilovetorzz account Torrentbytes account Polishsource account Portugas invite Shareisland account ArabaFenice account Hudbt.hust.edu.cn account Audiences account Nanyangpt account Pt.sjtu.edu.cn account Pt.zhixing.bjtu.edu.cn account Byr.pt invite Ptfiles invite Red-bits account Pt.hdpost.top account Irrenhaus.dyndns.dk (NewPropaganda) account Mnvv2.info (MaxNewVision V2) account 1ptba.com account Spidertk.top account Film-paleis account Generation-free account Aftershock-tracker account Twilightsdreams account Back-ups.me invite Sor-next.tk ( Spirit Of Revolution ) account Tfa.tf ( The Falling Angels ) account Hdmayi account S-f-p.dyndns.dk ( Share Friends Projekt ) account Unlimitz.biz account Pttime account St-tracker.eu account New-retro.eu account Zbbit account Tigers-dl.net account Jptvts.us account Lat-team account Club.hares.top account Falkonvision-team account Concen account Drugari account T.ceskeforum account Peeratiko.org account Zamunda.se account Central-torrent.eu account h-o-d.org account Torrentleech.pl account Demonoid invite Lst.gg account Fakedoor.store account LaidBackManor account Vrbsharezone.co.uk invite Torrenteros account Arenaelite account Datascene account Tracker.0day.community Tapochek.net invite Ptchina invite Lesaloon account Exyusubs account Therebels.tv account Ubits.club invite Zmpt.cc account Turktorrent.us account Dasunerwarte account Hawke.uno account Monikadesign account Fearnopeer account Alpharatio account Wukongwendao.top account Chinapyg account Azusa.wiki account Yggtorrent.top account Torrentdd account Cyanbug.net invite Hhanclub.top account Wintersakura.net account Xthor account Tctg.pm account Finelite invite Agsvpt.com account Pt.0ff.cc invite Qingwapt.com account Xingtan.one account Ptcafe.club invite W-o-t.pro account Coastal-crew.bounceme.net account Darkpeers.org account Pianyuan.org account Seedpool.org  account Tempelbox account Pt.itzmx.com account Capybarabr.com account Itatorrents.xyz  account Letseed.org account The-new-fun.com  account Malayabits.cc account Trellas.me account Yu-scene.net account Futuretorrent.org account Bitpt.cn account Tocashare.biz  account Videoteka.org  account White-angel.hu account Xbytesv2.li account   Movies Trackers :   Anthelion account Pixelhd account Cinemageddon account DVDSeed account Cinemageddon account Cinemaz account Retroflix account Classix-unlimited - invite Movie-Torrentz (m2g.link) invite Punck-tracker.net account Tmghub account Tb-asian account Cathode-ray.tube account Greatposterwall account Telly account Arabicsource.net account Upload.cx account Crabpt.vip invite Onlyencodes.cc account Exyusubs account Hellashut.net invite Nordichd.sytes.net invite Locadora.cc account   HD Trackers :   Blutopia buffered account Hd-olimpo buffered account Hdf.world account Torrentland.li account HdSky account Hdchina account Chdbits account Totheglory account Hdroute account Hdhome account TorrentCCF aka et8.org account 3DTorrents invite HD-Torrents account Bit-HDTV account HDME.eu invite Hdarea.co account Asiancinema.me account JoyHD invite HDSpace invite CrazyHD invite Bluebird-hd invite Htpt.cc account Hdtime invite Ourbits.club account Hd4fans account Siambit account Privatehd account Springsunday account Tjupt account Hdcity.leniter invite Ccfbits account Discfan account Pt.btschool.club account Ptsbao.club invite Hdzone.me invite Danishbytes account Zonaq.pw account Tracker.tekno3d account Arabp2p account Hd-united account Reelflix.xyz account Hdatmos.club account Anasch.cc invite Tigris-t account Nethd.org account Hd.ai invite Hitpt.com account Hdmonkey account Dragonhd.xyz account Hdclub.eu account Forum.bluraycd.com account Carpt account Hdfun.me invite Pt.hdupt invite Puntotorrent account Ultrahd account Rousi.zip account Bearbit account Hdturk.club account Asiandvdclub account Star-space.net account Nordicq.org account Hdkyl.in account Utp.to account Hdzero account   Music Trackers :   Dicmusic account Music-Vid account Open.cd account LzTr account ProAudioTorrents invite Jpopsuki invite TranceTraffic invite Audionews invite Kraytracker invite Libble.me invite Losslessclub invite Indietorrents.com invite Dimeadozen account Funkytorrents invite Karaokedl account zombtracker.the-zomb account Concertos account Sugoimusic account Satclubbing.club invite Metal.iplay invite Psyreactor invite Panda.cd account Adamsfile account Freehardmusic account Tracker.hqmusic.vn accouunt Twilightzoom account 3 tb buffer Hiresmusic account Metalguru account Musictorrents.org account Musebootlegs.com invite Zappateers.com account Jungleland.dnsalias.com account Naftamusic account   E-Learning Trackers :   Thevault account BitSpyder invite Brsociety account Learnbits invite Myanonamouse account Libranet account 420Project account Learnflakes account Pt.soulvoice.club account P2pelite account Aaaaarg.fail invite Ebooks-shares.org account Abtorrents account Pt.tu88.men invite Docspedia.world invite   TV-Trackers :   Skipthecommericals Cryptichaven account TV-Vault invite Shazbat.TV account Myspleen account Tasmanit.es invite Tvstore.me account Tvchaosuk account Jptv.club account Tvroad.info   XXX - Porn Trackers :   FemdomCult account Pornbay account Pussytorrents account Adult-cinema-network account Bootytape account 1 Tb buffer Exoticaz account Bitporn account Kufirc account Gaytorrent.ru invite Nicept account Gay-torrents.org invite Ourgtn account Pt.hdbd.us account BitSexy account Happyfappy.org account Kamept.com account Lesbians4u.org account   Gaming Trackers :   Mteam.fr account BitGamer invite Retrowithin invite Gamegamept account   Cartoon/Anime/Comic Trackers :   Animeworld account Oldtoons.world account U2.dmhy account CartoonChaos invite Animetorrents account Mononoke account Totallykids.tv account Bakabt.me invite Revanime account Ansktracker account Tracker.shakaw.com.br invite Bt.mdan.org account Skyey2.com account Animetracker.cc Adbt.it.cx invite Tracker.uniotaku.com account Mousebits.com account   Sports Trackers :   MMA-Tracker invite T3nnis.tv invite AcrossTheTasman account RacingForMe invite Sportscult invite Ultimatewrestlingtorrents account Worldboxingvideoarchive invite CyclingTorrents account Xtremewrestlingtorrents account Tc-boxing invite Mma-torrents account Aussierul invite Xwt-classics account Racing4everyone account Talk.tenyardtracker account Stalker.societyglitch invite Extremebits invite Rgfootball.net account F1carreras.xyz account   Software/Apps Trackers :   Brokenstones account Appzuniverse invite Teamos.xyz account Macbb.org account   Graphics Trackers:   Forum.Cgpersia account Gfxpeers account Forum.gfxdomain account   Documentary Trackers:   Forums.mvgroup account   Others   Fora.snahp.eu account Board4all.biz account Filewarez.tv account Makingoff.org/forum account Xrel.to account Undergunz.su account Corebay account Endoftheinter.net ( EOTI ) account Thismight.be invite Skull.facefromouter.space account Avxhm.se (AvaxHome) account Ssdforum account Notfake.vip account Intotheinter.net account Tildes.net invite Thetoonz account Usinavirtual account Hdclasico invite HispaShare account Valentine.wtf account Adit-hd account Forum-andr.net account Warezforums account Justanothermusic.site account Forbiddenlibrary.moe account Senturion.to account Movieparadise account Militaryzone account Dcdnet.ru account Sftdevils.net account Heavy-r.com account New-team.org account Ddl.tv account Filewarez.club account Hispamula.org account Hubwarez.tv account   NZB :   Ninjacentral.co.za account Tabula-rasa.pw account Drunkenslug account Drunkenslug invite Usenet-4all account Brothers-of-Usenet account Dognzb.cr invite Kleverig account Nzb.cat account Nzbplanet.net invite Ng4you.com account Nzbsa.co.za account Bd25.eu account NZB.to account Samuraiplace account Abhdtv.net account Abook.link account Comix.pw account House-of-usenet Secretbinaries.net account Vnext.to account Stockboxx.top account Sky-of-use.net account Prices start from 3 $ to 100 $   Payment methods: Crypto, Neteller, Webmoney, Revolut   If you want to buy something send me a pm or contact me on:   Email: morrison2102@gmail.com   Discord: LFC4LIFE#4173   Telegram: https://t.me/LFC4LIFE4173   Skype: morrison2102@hotmail.com
    • It removes the AA (Anti-Cheat) protection from the files, converting them from binary/encrypted formats into readable and editable ones. This is the first step for any client modification.
    • you need to move the contents of the staticmeshes/maps/textures folders of the respective screens and replace your existing files. If you are using interlude, you need to rename the .unr file to lobby.unr first. Or conversely if the file is already named lobby.unr and you wanna use it on h5, you rename it to lobby01.unr. Some might work, some might not, it's trial and error. Make backups of your client.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..