Results 1 to 8 of 8

Thread: New logging working

  1. Registered TeamPlayer
    Join Date
    10-29-07
    Posts
    4,953
    Post Thanks / Like
    Stat Links

    New logging working
    #1

    New logging working

    By default it will put logs in the directory "<game path>\logs\lonestar". If that directory doesn't exist, it will be automatically created. So for instance on my computer it's putting the logs at "C:\Valve\HLServer\orangebox\tf\logs\lonestar"

    It supports dumping the same log information into the server log, but it's turned off by default.

    Log entries can be forwarded to a specific player's console (useful for debugging, you need the highest admin rights in order to use this feature).

    Logs are always printed to the server console in addition to anywhere else they may go.

    Log file names are in the format "lonestar_MMDD###.log". Where MM is the month, DD is the day, and ### is a number that makes sure this log is a unique log name for the day.
    Examples:
    lonestar_0326000.log (first log the day)
    lonestar_0326001.log (second log the day)
    lonestar_0326002.log (third log the day)

    Log's will rotate every map change.

    When log messages are printed to the server console, player console, or put in the normal server log, they have a "[LoneStar]" prefix so they are easier to find

    Server console example
    Code:
    meta load ls
    [LoneStar]: LoneStar is now fully up and running
    [LoneStar] INFO: LoneStar log file opened (file "C:\Valve\HLServer\orangebox\tf\logs\lonestar\lonestar_0325005.log")
    Plugin "LoneStar" loaded with id 4.
    Client "« ?£? » Ewok" connected (172.16.1.33:27006).
    [LoneStar] DEBUG: Made real player '« ?£? » Ewok' at index 1 with steamId 'STEAM_ID_PENDING', at addr 172.16.1.33:27006
    [LoneStar] DEBUG: Adding player for pending id: « ?£? » Ewok
    [LoneStar] DEBUG: Found a (deferred) admin account for player « ?£? » Ewok
    [LoneStar] DEBUG: Player finally has a valid steam id: « ?£? » Ewok
    [LoneStar] INFO: Admin '« ?£? » Ewok' <STEAM_0:0:16511154> kicked player '« ?£? » Ewok' <STEAM_0:0:16511154>
    Dropped « ?£? » Ewok from server (Kicked by Console : For not being a teamplayer)
    Client "« ?£? » Ewok" connected (172.16.1.33:27006).
    [LoneStar] DEBUG: Made real player '« ?£? » Ewok' at index 1 with steamId 'STEAM_ID_PENDING', at addr 172.16.1.33:27006
    [LoneStar] DEBUG: Adding player for pending id: « ?£? » Ewok
    [LoneStar] DEBUG: Found a (deferred) admin account for player « ?£? » Ewok
    [LoneStar] DEBUG: Player finally has a valid steam id: « ?£? » Ewok
    meta unload ls
    [LoneStar] INFO: LoneStar log file closed
    [LoneStar]: LoneStar is now completely shutdown
    Plugin 4 unloaded.
    When log messages are written to the lonestar log, they don't have the "[LoneStar]" prefix, but instead they have a timestamp prefix that looks like "03/26/2008 - 00:03:45:"

    Log file example of the same time period as the above server console dump
    Code:
    03/25/2008 - 23:52:16: [INFO] LoneStar log file opened (file "C:\Valve\HLServer\orangebox\tf\logs\lonestar\lonestar_0325005.log")
    03/25/2008 - 23:56:50: [DEBUG] Made real player '« ?£? » Ewok' at index 1 with steamId 'STEAM_ID_PENDING', at addr 172.16.1.33:27006
    03/25/2008 - 23:56:50: [DEBUG] Adding player for pending id: « ?£? » Ewok
    03/25/2008 - 23:56:55: [DEBUG] Found a (deferred) admin account for player « ?£? » Ewok
    03/25/2008 - 23:56:55: [DEBUG] Player finally has a valid steam id: « ?£? » Ewok
    03/26/2008 - 00:02:55: [INFO] Admin '« ?£? » Ewok' <STEAM_0:0:16511154> kicked player '« ?£? » Ewok' <STEAM_0:0:16511154>
    03/26/2008 - 00:03:03: [DEBUG] Made real player '« ?£? » Ewok' at index 1 with steamId 'STEAM_ID_PENDING', at addr 172.16.1.33:27006
    03/26/2008 - 00:03:03: [DEBUG] Adding player for pending id: « ?£? » Ewok
    03/26/2008 - 00:03:08: [DEBUG] Found a (deferred) admin account for player « ?£? » Ewok
    03/26/2008 - 00:03:08: [DEBUG] Player finally has a valid steam id: « ?£? » Ewok
    03/26/2008 - 00:03:45: [INFO] LoneStar log file closed
    As you might have noticed, all log messages will generally have a category before the actual message itself. The purpose of this is to help admins find or filter out different types of messages, like errors, warnings, or debug messages.

    Categories right now are: ERROR, WARNING, INFO, CHAT, DEBUG


    When an admin uses a power, the log entries for using them will generally look like this line (from the above log)
    Code:
    03/26/2008 - 00:02:55: [INFO] Admin '« ?£? » Ewok' <STEAM_0:0:16511154> kicked player '« ?£? » Ewok' <STEAM_0:0:16511154>

    Unless you guy have suggestions or comments, I think logging is basically done and working as we'd like it to.

  2. Registered TeamPlayer AK99's Avatar
    Join Date
    01-23-07
    Posts
    4,217
    Post Thanks / Like
    #2

    Re: New logging working

    Looks good.

  3. Administrator ...bigdog...'s Avatar
    Join Date
    06-10-05
    Posts
    51,240
    Post Thanks / Like
    Stat Links

    New logging working New logging working New logging working
    Gamer IDs

    Steam ID: bigdogttp
    #3

    Re: New logging working

    keep in mind, we'll need the mod to be able to parse the damage logs and translate them into a format that psychostats understands for hitbox data.
    Quote Originally Posted by ...bigdog... View Post
    If turd fergusons want to troll their lives away, that's the world's problem. Go read the CNN.com comments section, or any comments section, anywhere. All of the big threads are going to be the crazy people saying stupid shit.

  4. Registered TeamPlayer
    Join Date
    10-29-07
    Posts
    4,953
    Post Thanks / Like
    Stat Links

    New logging working
    #4

    Re: New logging working

    rgr. I'll have to take a look at pyschostats to see what it needs.

    I think that can be an independent TODO item and put into the "nice to have" category (i.e. we won't let that feature hold up the first release, but we'll get to it eventually).

  5. Administrator ...bigdog...'s Avatar
    Join Date
    06-10-05
    Posts
    51,240
    Post Thanks / Like
    Stat Links

    New logging working New logging working New logging working
    Gamer IDs

    Steam ID: bigdogttp
    #5

    Re: New logging working

    certainly. we can always reduce mani functions to a minimum, and just keep it's stats logging online. It's simply appending the existing log out put to be in the original pstats format (from 1.6 and prior).
    Quote Originally Posted by ...bigdog... View Post
    If turd fergusons want to troll their lives away, that's the world's problem. Go read the CNN.com comments section, or any comments section, anywhere. All of the big threads are going to be the crazy people saying stupid shit.

  6. Zombie Dog
    Join Date
    08-05-10
    Posts
    546
    Post Thanks / Like
    #6

    Really weird color bug.

    My xbox is pretty wierd 'cause every survivors is white and guns too. It's probably a bug because I accidentally hit my xbox with a bottle of water yesterday. :3
    It's a realllllly old one, so it's not that bad.
    So Mince asked me for pictures, I decided to create a thread if you are interested in my really weird bug.(It's really annoying in versus)
    Pictures ; (The quality of the images is not really good.)

    1.Rochelle


    2. Coach.Actually, the only normal survivor.


    3.Ellis is scary.


    4.Healthpack


    5. What the hell.


    6.Look at the gun, it's supposed to be black.


    That's it, fucking weird thing. Horrible in versus.
    [SIGPIC][/SIGPIC]
    Dylan & Baez.

  7. Registered TeamPlayer
    Join Date
    05-11-10
    Posts
    1,760
    Post Thanks / Like
    #7
    I wish I had glitches like this.

    Also, didn't you say your Tank was an odd pink or something?
    Quote Originally Posted by Target Practice View Post
    Guys, I think there's an important lesson to be learned here:

    THE INTERNET IS ALWAYS ALWAYS ALWAYS VERY SERIOUS BUSINESS.

  8. Zombie Dog
    Join Date
    08-05-10
    Posts
    546
    Post Thanks / Like
    #8
    Mince ?Lawl. It's really annoying in Versus when you're a SI, because you don't see the survivors well.

    Actually, the jockey, in Versus, is flashy pink but I didn't want to take a pic, too lazy. Plus, the spitter is almost yellow.
    [BTW, it's not a glitch, but a stupid bug]
    [SIGPIC][/SIGPIC]
    Dylan & Baez.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Title