Jump to content
metin2dev
Ekstasia2
  • 0
TheSLZ

disable syslog

Question

Hi metin2dev,

 

How can i disable syslog in source?

Because the game logs too many useless thing.

Expample

Sep 17 08:05:30.931999 :: SYSTEM: new connection from [25.162.96.162] fd: 17 handshake 851899565 output input_len 0, ptr 0x54024000
Sep 17 08:05:31.168067 :: Handshake: lower than zero -5
Sep 17 08:05:31.246955 :: Handshake: lower than zero -17
Sep 17 08:05:31.328514 :: Handshake: client_time 0 server_time 11903328
Sep 17 08:05:31.963192 :: LOGIN_BY_KEY: theslz000 key 2051792729
Sep 17 08:05:32.45323 :: LoginSuccess
Sep 17 08:05:32.45440 ::  player([SA]TheSLZ).job(0)
Sep 17 08:05:32.45468 ::  player().job(0)
Sep 17 08:05:32.45493 ::  player().job(0)
Sep 17 08:05:32.45519 ::  player().job(0)
Sep 17 08:05:32.48100 :: success to 25.162.96.100:20010
Sep 17 08:05:32.50353 :: InputDB::login_success: theslz000
Sep 17 08:05:32.718570 :: SYSTEM: new connection from [25.162.96.162] fd: 18 handshake 1046281675 output input_len 0, ptr 0x53f0b800
Sep 17 08:05:32.838297 :: MARK_SERVER: Login
Sep 17 08:05:33.888237 :: LargePacket Size 556
Sep 17 08:05:33.888351 :: MARK_SERVER: GuildMarkIDXList 563 bytes sent.
Sep 17 08:05:34.144687 :: MARK_SERVER: Sending blocks. (imgIdx 0 diff 0 size 10)
Sep 17 08:05:34.238045 :: SYSTEM: closing socket. DESC #18
Sep 17 08:05:37.238128 :: SYSTEM: new connection from [25.162.96.162] fd: 18 handshake 4151493623 output input_len 0, ptr 0x53f0b800
Sep 17 08:05:37.277198 :: SYSTEM: closing socket. DESC #17
Sep 17 08:05:37.476703 :: Handshake: lower than zero -39
Sep 17 08:05:37.556566 :: Handshake: client_time 0 server_time 11909556
Sep 17 08:05:38.157225 :: LOGIN_BY_KEY: theslz000 key 2051792729
Sep 17 08:05:38.276368 :: LoginSuccess
Sep 17 08:05:38.276539 ::  player([SA]TheSLZ).job(0)
Sep 17 08:05:38.276583 ::  player().job(0)
Sep 17 08:05:38.276622 ::  player().job(0)
Sep 17 08:05:38.276661 ::  player().job(0)
Sep 17 08:05:38.276719 :: success to 25.162.96.100:20010
Sep 17 08:05:38.276860 :: InputDB::login_success: theslz000
Sep 17 08:05:38.676823 :: player_select: login: theslz000 index: 0
Sep 17 08:05:38.822850 :: GM_NEW_GET_LEVEL : FIND ACCOUNT
Sep 17 08:05:38.823164 :: PK_MODE: [SA]TheSLZ 3
Sep 17 08:05:38.831905 :: PLAYER_LOAD: [SA]TheSLZ PREMIUM 0 0, LOGGOFF_INTERVAL 12199 PTR: 0x3360b000
Sep 17 08:05:38.836984 :: GM_LOGIN(gmlevel=5, name=[SA]TheSLZ(68671), pos=(961771, 277047)
Sep 17 08:05:38.919792 :: InputDB: player_load [SA]TheSLZ 961771x277047x0 LEVEL 105 MOV_SPEED 100 JOB 0 ATG 222 DFG 108 GMLv 5
Sep 17 08:05:38.960405 :: ITEM_LOAD: COUNT [SA]TheSLZ 109
Sep 17 08:05:39.256472 :: REAL_TIME_EXPIRE: StartRealTimeExpireEvent
Sep 17 08:05:39.256676 :: REAL_TIME_EXPIRE: StartRealTimeExpireEvent
Sep 17 08:05:39.274684 :: REAL_TIME_EXPIRE: StartRealTimeExpireEvent
Sep 17 08:05:39.274965 :: REAL_TIME_EXPIRE: StartRealTimeExpireEvent
Sep 17 08:05:39.278080 :: REAL_TIME_EXPIRE: StartRealTimeExpireEvent
Sep 17 08:05:39.278179 :: REAL_TIME_EXPIRE: StartRealTimeExpireEvent
Sep 17 08:05:39.286050 :: QUEST_LOAD: count 42
Sep 17 08:05:39.298871 :: QUEST clear timer 0
Sep 17 08:05:39.298990 :: QUEST clear timer 0
Sep 17 08:05:39.299061 ::             alter_of_power.build_level 20
Sep 17 08:05:39.299122 ::             beran7_setaou.ejder_sifre 132
Sep 17 08:05:39.299159 ::             beran7_setaou.lider 2
Sep 17 08:05:39.299195 ::             check_trans_ticket.__status 526282696
Sep 17 08:05:39.299230 ::             collect_herb_lv10.__status 1675612723
Sep 17 08:05:39.299266 ::             collect_herb_lv15.__status 1675612723
Sep 17 08:05:39.299301 ::             collect_herb_lv20.__status 1675612723
Sep 17 08:05:39.299411 ::             collect_herb_lv25.__status 1675612723
Sep 17 08:05:39.299464 ::             collect_herb_lv4.__status 1675612723
Sep 17 08:05:39.299501 ::             collect_herb_lv7.__status 1675612723
Sep 17 08:05:39.299537 ::             collect_quest_lv30.__status 1675612723
Sep 17 08:05:39.299573 ::             couple_ring.__status 1675612723
Sep 17 08:05:39.299608 ::             dragon_soul.eye_left 8
Sep 17 08:05:39.299643 ::             dragon_soul.eye_timestamp 16321
Sep 17 08:05:39.299679 ::             dragon_soul.__status -718086412
Sep 17 08:05:39.299715 ::             energy_system.__status -1515020254
Sep 17 08:05:39.299751 ::             flame_dungeon.exit_time 1408618602
Sep 17 08:05:39.299796 ::             flame_dungeon.__status 1349952704
Sep 17 08:05:39.299833 ::             give_basic_weapon.basic_weapon 1
Sep 17 08:05:39.299868 ::             kek_sarkany.ejder_sifre 123123
Sep 17 08:05:39.299904 ::             kek_sarkany.lider 2
Sep 17 08:05:39.299939 ::             killgui.empire2 11
Sep 17 08:05:39.299991 ::             killgui.mob 1145
Sep 17 08:05:39.300028 ::             levelup.buttonstate 1
Sep 17 08:05:39.300063 ::             levelup.current 2
Sep 17 08:05:39.300146 ::             levelup.remain 10
Sep 17 08:05:39.300182 ::             levelup.select 1
Sep 17 08:05:39.300217 ::             spider_dungeon_2floor.__status 1290640410
Sep 17 08:05:39.300254 ::             stash.goldintro 3
Sep 17 08:05:39.300290 ::             subquest_1.__status 695801987
Sep 17 08:05:39.300325 ::             subquest_2.__status 695801987
Sep 17 08:05:39.300362 ::             subquest_3.__status 695801987
Sep 17 08:05:39.300398 ::             subquest_4.__status 695801987
Sep 17 08:05:39.300434 ::             subquest_5.__status 695801987
Sep 17 08:05:39.300485 ::             subquest_6.__status 695801987
Sep 17 08:05:39.300525 ::             szint_lada.ladahasznalat 1
Sep 17 08:05:39.300561 ::             szint_lada.ladahasznalat10 1
Sep 17 08:05:39.300597 ::             szint_lada.ladahasznalat20 1
Sep 17 08:05:39.300634 ::             team_list.basic_weapon 1
Sep 17 08:05:39.300670 ::             training_mount.__status 351879266
Sep 17 08:05:39.300706 ::             traning_master_skill.1.read_count 3
Sep 17 08:05:39.300749 ::             upgrade_refine_scroll.mob 2
Sep 17 08:05:39.578485 :: VERSION: [SA]TheSLZ 1195432649 SLZ.exe

etc

 

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Why don't you just return the function at the begin? But logging of useless stuffs can't be a reason to do this.

void sys_log(unsigned int bit, const char *format, ...)
{
   return;
  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Thx Sanchez

 

Zonni,

You are a very helpful people.. 

This syslog is useless for me... 

For me, syserr is enough.

Oww, i know that! <3

But let be serious. Syslog isn't really big and sometimes syserr isn't enough to figure out bugs.

If you really don't need syslog do what Dennis told you, I recommend to use another way:

find in config.cpp

log_set_expiration_days(2);
and replace it by

log_set_expiration_days(1);
As I remember server with 2500 players online generate ~1GB logs per hour (1 pm - 10 pm) and as I said - syslog can be usefull in some cases.
  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Why don't you just return the function at the begin? But logging of useless stuffs can't be a reason to do this.

void sys_log(unsigned int bit, const char *format, ...)
{
   return;

 

where can i find the .cpp file of this function ?

libthecore/src/log.c

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Why don't you just return the function at the begin? But logging of useless stuffs can't be a reason to do this.

void sys_log(unsigned int bit, const char *format, ...)
{
   return;

 

where can i find the .cpp file of this function ?

libthecore/src/log.c

really thanks for answer :)

  • Like 1

Share this post


Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×