Raised This Month: $51 Target: $400
 12% 

[Any] Classy Crash Logger


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
midnight9
Senior Member
Join Date: Nov 2012
Old 03-28-2015 , 19:08   Re: [Any] Classy Crash Logger
Reply With Quote #35

Quote:
Originally Posted by friagram View Post
nonclassy crash logger:

PHP Code:
For /"tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do (
  
Set DayW=%%A
  Set Day
=%%B
  Set Month
=%%C
  Set Year
=%%D
  Set 
"All=%%A (%%B-%%C)"
)
For /
"tokens=1,2,3 delims=:,. " %%A in ('echo %time%') do (
  
set /"Hour=100%%A%%100"
  
set Min=%%B
  set Sec
=%%C
)
if %
Hourgeq 12 (
  
set AMPM=PM
  set 
/"Hour-=12"
) else set "AMPM=AM"
if %Hourequ 0 set "Hour=12"
if %Hourlss 10 set "Hour=0%Hour%"
set "Allm=%Hour%.%Min%.%Sec% %AMPM%"

ECHO %All% %Allmsrcds started >> crashlog.txt
type crashlog
.txt

<stuff>

For /
"tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do (
  
Set DayW=%%A
  Set Day
=%%B
  Set Month
=%%C
  Set Year
=%%D
  Set 
"All=%%A (%%B-%%C)"
)
For /
"tokens=1,2,3 delims=:,. " %%A in ('echo %time%') do (
  
set /"Hour=100%%A%%100"
  
set Min=%%B
  set Sec
=%%C
)
if %
Hourgeq 12 (
  
set AMPM=PM
  set 
/"Hour-=12"
) else set "AMPM=AM"
if %Hourequ 0 set "Hour=12"
if %Hourlss 10 set "Hour=0%Hour%"
set "Allm=%Hour%.%Min%.%Sec% %AMPM%"

ECHO %All% %AllmWARNINGsrcds crashedrestarting  >> crashlog.txt 
rsync to web...

profit?

oh right, and if you have another daemon monitoring the server updates//hangs (you should)
PHP Code:
copypastedatecodefromabove

ECHO %All% %AllmServer Terminated Was Not Responsive >> "path\to\crashlog.txt"

and in your steamcmd update file

ECHO %All% %AllmServer Updated >> "path\to\crashlog.txt" 
And how do i use this?

Any chance to make this plugin log to file rather than webpage?
midnight9 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode