Hi, Is it possible to log to other(s) file then srv.log Like one file per app. -- Borre
![]() |
0 |
![]() |
Sure, but you'll have to write the logging functionality yourself. I have an eventlogger component in my server that gets the log file name from the package properties and creates a log file for each package. You could do Server, Package, Component or whatever you choose, but you will have to write code to do it. In fact I recommend that you do NOT write application messages to the srv.log file. regards, Bill Borre Nordbakken wrote: > Hi, > > Is it possible to log to other(s) file then srv.log > > Like one file per app. > > -- > Borre -- Bill Green[TeamSybase] ----------------------------------------------------------- Vote Now: Readers Choice Awards http://www.sys-con.com/java/readerschoice2001/ Good Links to know, good places to go: Developer stuff on my.sybase.com - Sign up, visit often Find things like: -- EAServer 3.6.1 maintenance release is available -- PowerBuilder 7.03 maintenance release available -- Components, White papers, articles and more -- Web DataWindow Article Series (Author: Larry Cermak) -- Jaguar Agent for Web Servers (HTTP access to PB components) PFC Guide - http://www.pfcguide.com Power3 - Custom Training - http://www.power3.com Bill Green @ Power3 - [email protected] -----------------------------------------------------------
![]() |
0 |
![]() |
Take a look at Log4J, from the Apache project. It provides a framework for logging that could do most of the work for you. -- Jonathan Baker eBusiness Division Sybase, Inc. "Bill Green[TeamSybase]" <[email protected]> wrote in message news:[email protected] > Sure, but you'll have to write the logging functionality yourself. I > have an eventlogger component in my server that gets the log file name > from the package properties and creates a log file for each package. You > could do Server, Package, Component or whatever you choose, but you will > have to write code to do it. In fact I recommend that you do NOT write > application messages to the srv.log file. > > regards, > Bill > > Borre Nordbakken wrote: > > > Hi, > > > > Is it possible to log to other(s) file then srv.log > > > > Like one file per app. > > > > -- > > Borre > > -- > Bill Green[TeamSybase] > ----------------------------------------------------------- > Vote Now: Readers Choice Awards > http://www.sys-con.com/java/readerschoice2001/ > > > Good Links to know, good places to go: > > Developer stuff on my.sybase.com - Sign up, visit often > Find things like: > -- EAServer 3.6.1 maintenance release is available > -- PowerBuilder 7.03 maintenance release available > -- Components, White papers, articles and more > -- Web DataWindow Article Series (Author: Larry Cermak) > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > PFC Guide - http://www.pfcguide.com > > Power3 - Custom Training - http://www.power3.com > Bill Green @ Power3 - [email protected] > ----------------------------------------------------------- > >
![]() |
0 |
![]() |
Does it redirect standard out as well? C ___________________________________________________________ Carson Hager Team Sybase Cynergy Systems, Inc. Sybase Enterprise Application Studio Consulting and Training http://www.cynergysystems.com "Jonathan Baker [Sybase]" <[email protected]> wrote in message news:[email protected] > Take a look at Log4J, from the Apache project. It provides a framework for > logging that could do most of the work for you. > > > -- > Jonathan Baker > eBusiness Division > Sybase, Inc. > > > "Bill Green[TeamSybase]" <[email protected]> wrote in message > news:[email protected] > > Sure, but you'll have to write the logging functionality yourself. I > > have an eventlogger component in my server that gets the log file name > > from the package properties and creates a log file for each package. You > > could do Server, Package, Component or whatever you choose, but you will > > have to write code to do it. In fact I recommend that you do NOT write > > application messages to the srv.log file. > > > > regards, > > Bill > > > > Borre Nordbakken wrote: > > > > > Hi, > > > > > > Is it possible to log to other(s) file then srv.log > > > > > > Like one file per app. > > > > > > -- > > > Borre > > > > -- > > Bill Green[TeamSybase] > > ----------------------------------------------------------- > > Vote Now: Readers Choice Awards > > http://www.sys-con.com/java/readerschoice2001/ > > > > > > Good Links to know, good places to go: > > > > Developer stuff on my.sybase.com - Sign up, visit often > > Find things like: > > -- EAServer 3.6.1 maintenance release is available > > -- PowerBuilder 7.03 maintenance release available > > -- Components, White papers, articles and more > > -- Web DataWindow Article Series (Author: Larry Cermak) > > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > > > PFC Guide - http://www.pfcguide.com > > > > Power3 - Custom Training - http://www.power3.com > > Bill Green @ Power3 - [email protected] > > ----------------------------------------------------------- > > > > > >
![]() |
0 |
![]() |
It can. I wrote a bunch of output handlers that write to standard out, special log files, and the message service. Total time coding, about 2 hours. If you want the samples, let me know. /j -- Jonathan Baker eBusiness Division Sybase, Inc. "Carson Hager [Team Sybase]" <[email protected]> wrote in message news:[email protected] > Does it redirect standard out as well? > > > C > > ___________________________________________________________ > > Carson Hager > Team Sybase > Cynergy Systems, Inc. > Sybase Enterprise Application Studio Consulting and Training > http://www.cynergysystems.com > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > news:[email protected] > > Take a look at Log4J, from the Apache project. It provides a framework > for > > logging that could do most of the work for you. > > > > > > -- > > Jonathan Baker > > eBusiness Division > > Sybase, Inc. > > > > > > "Bill Green[TeamSybase]" <[email protected]> wrote in message > > news:[email protected] > > > Sure, but you'll have to write the logging functionality yourself. I > > > have an eventlogger component in my server that gets the log file name > > > from the package properties and creates a log file for each package. You > > > could do Server, Package, Component or whatever you choose, but you will > > > have to write code to do it. In fact I recommend that you do NOT write > > > application messages to the srv.log file. > > > > > > regards, > > > Bill > > > > > > Borre Nordbakken wrote: > > > > > > > Hi, > > > > > > > > Is it possible to log to other(s) file then srv.log > > > > > > > > Like one file per app. > > > > > > > > -- > > > > Borre > > > > > > -- > > > Bill Green[TeamSybase] > > > ----------------------------------------------------------- > > > Vote Now: Readers Choice Awards > > > http://www.sys-con.com/java/readerschoice2001/ > > > > > > > > > Good Links to know, good places to go: > > > > > > Developer stuff on my.sybase.com - Sign up, visit often > > > Find things like: > > > -- EAServer 3.6.1 maintenance release is available > > > -- PowerBuilder 7.03 maintenance release available > > > -- Components, White papers, articles and more > > > -- Web DataWindow Article Series (Author: Larry Cermak) > > > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > > > > > PFC Guide - http://www.pfcguide.com > > > > > > Power3 - Custom Training - http://www.power3.com > > > Bill Green @ Power3 - [email protected] > > > ----------------------------------------------------------- > > > > > > > > > > > >
![]() |
0 |
![]() |
I'd love to see them. Send them on when you get a moment. Thanks, C ___________________________________________________________ Carson Hager Team Sybase Cynergy Systems, Inc. Sybase Enterprise Application Studio Consulting and Training http://www.cynergysystems.com "Jonathan Baker [Sybase]" <[email protected]> wrote in message news:[email protected] > It can. I wrote a bunch of output handlers that write to standard out, > special log files, and the message service. Total time coding, about 2 > hours. > > If you want the samples, let me know. > > > /j > > -- > Jonathan Baker > eBusiness Division > Sybase, Inc. > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > message news:[email protected] > > Does it redirect standard out as well? > > > > > > C > > > > ___________________________________________________________ > > > > Carson Hager > > Team Sybase > > Cynergy Systems, Inc. > > Sybase Enterprise Application Studio Consulting and Training > > http://www.cynergysystems.com > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > news:[email protected] > > > Take a look at Log4J, from the Apache project. It provides a framework > > for > > > logging that could do most of the work for you. > > > > > > > > > -- > > > Jonathan Baker > > > eBusiness Division > > > Sybase, Inc. > > > > > > > > > "Bill Green[TeamSybase]" <[email protected]> wrote in message > > > news:[email protected] > > > > Sure, but you'll have to write the logging functionality yourself. I > > > > have an eventlogger component in my server that gets the log file name > > > > from the package properties and creates a log file for each package. > You > > > > could do Server, Package, Component or whatever you choose, but you > will > > > > have to write code to do it. In fact I recommend that you do NOT write > > > > application messages to the srv.log file. > > > > > > > > regards, > > > > Bill > > > > > > > > Borre Nordbakken wrote: > > > > > > > > > Hi, > > > > > > > > > > Is it possible to log to other(s) file then srv.log > > > > > > > > > > Like one file per app. > > > > > > > > > > -- > > > > > Borre > > > > > > > > -- > > > > Bill Green[TeamSybase] > > > > ----------------------------------------------------------- > > > > Vote Now: Readers Choice Awards > > > > http://www.sys-con.com/java/readerschoice2001/ > > > > > > > > > > > > Good Links to know, good places to go: > > > > > > > > Developer stuff on my.sybase.com - Sign up, visit often > > > > Find things like: > > > > -- EAServer 3.6.1 maintenance release is available > > > > -- PowerBuilder 7.03 maintenance release available > > > > -- Components, White papers, articles and more > > > > -- Web DataWindow Article Series (Author: Larry Cermak) > > > > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > > > > > > > PFC Guide - http://www.pfcguide.com > > > > > > > > Power3 - Custom Training - http://www.power3.com > > > > Bill Green @ Power3 - [email protected] > > > > ----------------------------------------------------------- > > > > > > > > > > > > > > > > > > > >
![]() |
0 |
![]() |
Since we are on logging, let me throw this out. Many operating systems use buffered I/Os. In the event of a Jag crash, the last line inside of the srv.log may not actually be the last thing that executed. Throw in Jaguar's multi-threading issues, and you see logging lines interwooven among a number of components, further complicating the issue. The _best_ approach for logging is to use a database and a component that transactionally writes out to a table(s) in the database. In this way, you tend to have more peace of mind that _everything_ that was queued to be logged will indeed show up. Giving credit where credit is due, Dave W. first explained this to me many, many months back. my $0.02 worth... or should I say Dave's :-) -- Jason Weiss eBusiness Division * remove __nospam__ from address to e-mail directly. "Carson Hager [Team Sybase]" <[email protected]> wrote in message news:[email protected] > I'd love to see them. Send them on when you get a moment. > > > Thanks, > > C > > ___________________________________________________________ > > Carson Hager > Team Sybase > Cynergy Systems, Inc. > Sybase Enterprise Application Studio Consulting and Training > http://www.cynergysystems.com > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > news:[email protected] > > It can. I wrote a bunch of output handlers that write to standard out, > > special log files, and the message service. Total time coding, about 2 > > hours. > > > > If you want the samples, let me know. > > > > > > /j > > > > -- > > Jonathan Baker > > eBusiness Division > > Sybase, Inc. > > > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > > message news:[email protected] > > > Does it redirect standard out as well? > > > > > > > > > C > > > > > > ___________________________________________________________ > > > > > > Carson Hager > > > Team Sybase > > > Cynergy Systems, Inc. > > > Sybase Enterprise Application Studio Consulting and Training > > > http://www.cynergysystems.com > > > > > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > > news:[email protected] > > > > Take a look at Log4J, from the Apache project. It provides a > framework > > > for > > > > logging that could do most of the work for you. > > > > > > > > > > > > -- > > > > Jonathan Baker > > > > eBusiness Division > > > > Sybase, Inc. > > > > > > > > > > > > "Bill Green[TeamSybase]" <[email protected]> wrote in message > > > > news:[email protected] > > > > > Sure, but you'll have to write the logging functionality yourself. I > > > > > have an eventlogger component in my server that gets the log file > name > > > > > from the package properties and creates a log file for each package. > > You > > > > > could do Server, Package, Component or whatever you choose, but you > > will > > > > > have to write code to do it. In fact I recommend that you do NOT > write > > > > > application messages to the srv.log file. > > > > > > > > > > regards, > > > > > Bill > > > > > > > > > > Borre Nordbakken wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > Is it possible to log to other(s) file then srv.log > > > > > > > > > > > > Like one file per app. > > > > > > > > > > > > -- > > > > > > Borre > > > > > > > > > > -- > > > > > Bill Green[TeamSybase] > > > > > ----------------------------------------------------------- > > > > > Vote Now: Readers Choice Awards > > > > > http://www.sys-con.com/java/readerschoice2001/ > > > > > > > > > > > > > > > Good Links to know, good places to go: > > > > > > > > > > Developer stuff on my.sybase.com - Sign up, visit often > > > > > Find things like: > > > > > -- EAServer 3.6.1 maintenance release is available > > > > > -- PowerBuilder 7.03 maintenance release available > > > > > -- Components, White papers, articles and more > > > > > -- Web DataWindow Article Series (Author: Larry Cermak) > > > > > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > > > > > > > > > PFC Guide - http://www.pfcguide.com > > > > > > > > > > Power3 - Custom Training - http://www.power3.com > > > > > Bill Green @ Power3 - [email protected] > > > > > ----------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
![]() |
0 |
![]() |
Attached are the samples of code that I was talking about earlier. There are two appenders here. One writes directly to the Jaguar Log, the other to the Jaguar Message Service. I also included a service component that sets the entire logging process up when the server starts. Please note that this code is distributed AS IS. It's a sample only. And, in response to Jason's post: Yeah, I wrote an appender to solve that exact problem. The other issue is that the appender consumes I/O time to do the database write, so it still slows down the application by logging. The solution is complex. What I recommend is that you perform an 'immediate' log to write any urgent or error messages directly to disk or DB. All other messages (warnings, debug, etc.) can be written to the message service, which will the do asynchronous I/O. So, the software won't be slowed down by writing information you might need. -- Jonathan Baker eBusiness Division Sybase, Inc. "Jason Weiss [Sybase]" <[email protected]> wrote in message news:T#[email protected] > Since we are on logging, let me throw this out. Many operating systems use > buffered I/Os. In the event of a Jag crash, the last line inside of the > srv.log may not actually be the last thing that executed. Throw in Jaguar's > multi-threading issues, and you see logging lines interwooven among a number > of components, further complicating the issue. > > The _best_ approach for logging is to use a database and a component that > transactionally writes out to a table(s) in the database. In this way, you > tend to have more peace of mind that _everything_ that was queued to be > logged will indeed show up. > > Giving credit where credit is due, Dave W. first explained this to me many, > many months back. > > my $0.02 worth... or should I say Dave's :-) > > -- > Jason Weiss > eBusiness Division > > * remove __nospam__ from address to e-mail directly. > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > message news:[email protected]ase.com... > > I'd love to see them. Send them on when you get a moment. > > > > > > Thanks, > > > > C > > > > ___________________________________________________________ > > > > Carson Hager > > Team Sybase > > Cynergy Systems, Inc. > > Sybase Enterprise Application Studio Consulting and Training > > http://www.cynergysystems.com > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > news:[email protected] > > > It can. I wrote a bunch of output handlers that write to standard out, > > > special log files, and the message service. Total time coding, about 2 > > > hours. > > > > > > If you want the samples, let me know. > > > > > > > > > /j > > > > > > -- > > > Jonathan Baker > > > eBusiness Division > > > Sybase, Inc. > > > > > > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > > > message news:[email protected] > > > > Does it redirect standard out as well? > > > > > > > > > > > > C > > > > > > > > ___________________________________________________________ > > > > > > > > Carson Hager > > > > Team Sybase > > > > Cynergy Systems, Inc. > > > > Sybase Enterprise Application Studio Consulting and Training > > > > http://www.cynergysystems.com > > > > > > > > > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > > > news:[email protected] > > > > > Take a look at Log4J, from the Apache project. It provides a > > framework > > > > for > > > > > logging that could do most of the work for you. > > > > > > > > > > > > > > > -- > > > > > Jonathan Baker > > > > > eBusiness Division > > > > > Sybase, Inc. > > > > > > > > > > > > > > > "Bill Green[TeamSybase]" <[email protected]> wrote in > message > > > > > news:[email protected] > > > > > > Sure, but you'll have to write the logging functionality yourself. > I > > > > > > have an eventlogger component in my server that gets the log file > > name > > > > > > from the package properties and creates a log file for each > package. > > > You > > > > > > could do Server, Package, Component or whatever you choose, but > you > > > will > > > > > > have to write code to do it. In fact I recommend that you do NOT > > write > > > > > > application messages to the srv.log file. > > > > > > > > > > > > regards, > > > > > > Bill > > > > > > > > > > > > Borre Nordbakken wrote: > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > Is it possible to log to other(s) file then srv.log > > > > > > > > > > > > > > Like one file per app. > > > > > > > > > > > > > > -- > > > > > > > Borre > > > > > > > > > > > > -- > > > > > > Bill Green[TeamSybase] > > > > > > ----------------------------------------------------------- > > > > > > Vote Now: Readers Choice Awards > > > > > > http://www.sys-con.com/java/readerschoice2001/ > > > > > > > > > > > > > > > > > > Good Links to know, good places to go: > > > > > > > > > > > > Developer stuff on my.sybase.com - Sign up, visit often > > > > > > Find things like: > > > > > > -- EAServer 3.6.1 maintenance release is available > > > > > > -- PowerBuilder 7.03 maintenance release available > > > > > > -- Components, White papers, articles and more > > > > > > -- Web DataWindow Article Series (Author: Larry Cermak) > > > > > > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > > > > > > > > > > > PFC Guide - http://www.pfcguide.com > > > > > > > > > > > > Power3 - Custom Training - http://www.power3.com > > > > > > Bill Green @ Power3 - [email protected] > > > > > > ----------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > begin 666 Jaguar Log4J Samples.zip M4$L#! H``````"-]LRH````````````````$````8V]M+U!+`P0*```````C M?;,J````````````````"P```&-O;2]S>6)A<V4O4$L#! H``````"-]LRH` M```````````````2````8V]M+W-Y8F%S92]J86=U87(O4$L#! H``````"-] MLRH````````````````6````8V]M+W-Y8F%S92]J86=U87(O;&]G+U!+`P0* M```````C?;,J````````````````!P```%-O=7)C92]02P,$"@``````)'VS M*@````````````````8```!$96)U9R]02P,$"@``````)'VS*@`````````` M``````H```!$96)U9R]C;VTO4$L#! H``````"1]LRH````````````````1 M````1&5B=6<O8V]M+W-Y8F%S92]02P,$"@``````)'VS*@`````````````` M`[email protected]```!$96)U9R]C;VTO<WEB87-E+VIA9W5A<B]02P,$"@``````)'VS*@`` M`````````````!P```!$96)U9R]C;VTO<WEB87-E+VIA9W5A<B]L;V<O4$L# M!!0````(`"1]LRHGDC=.V (``&H%```S````1&5B=6<O8V]M+W-Y8F%S92]J M86=U87(O;&]G+TIA9W5A<DQO9T%P<&5N9&5R+F-L87-SC91K3Q-!%(;?*:4M M:[email protected]*;:'=HB!JD<083"3%F)20".'#L QE8;M;=[=<$O^/7_Q"8L!H [email protected]_P1QG/;%L!6X/=M).=<^9YSWGGI#]_??N!+N2PPJ"4[;JCB]>&*1B&UGBE MSIV277E9JPEK3SCY0W[,*:#;U;Q[MLM=D=?W>7Y/[)NV;C',4$!K!+1#_[!F MVA6MC1-&D&'2=BH:KW']0,BLA4.M%2X?"5-XMA5&B&$Z76I+=&N&1KB*8556 MCX7E%3.;#"'N'V<(OK+WJ/R^DF&)M_7JKG V^*YL*&3R,[ON,8RT(TM^J!A% M%'=[$$8OP_ _DL*X1ZQ]VZER8BW]5WTEZ9QF<JNBE3V']DDIAKB"[email protected]+3[ [email protected]#A-Z\(88HB<.(8G"[email protected],$P1AG"5>&ZO$)=Q]I3R?QV MQ;IGF-K:ZJDN:IXAS7_ $+\ZNG'@V"?2QS!4,K=&(*_L<?UHP^$ZR72E90$/ MD50PB2F&@#AE2)9NU:%BNH4T26;?[[email protected] R9#NB.PU:4%[email protected]>Y8\@& MFM- !6\Q]#KB0]UPA%MJSD:W;MJN')9EPS*\[email protected]*LJ4PYAD>M)7WCGN><*S6 M7#QF&-M.Y>8+WHZ:RBW6U)2N;J=.=]2<FJJFK @6&0;3G:^[email protected]"4%"WC*T.,* MKU7->(?I:HZJ//0<15G;,EG>3:O\!.GI000!*/3VD=8N6A/(?D'?[ 4&UX-S M7S'V"9'UN0NDSL'HB=$S09EW*',4(?KMI]T!(@Q1)($X1FBJQC!'D2SQ?1YF M?;T$TLA0MD(5C.,^4>*4,8V9IG)0CCC%\_0/TZAIWM<$18.?:6G(*K2"`.2R M+Q-MIC1D&J!Q'Z0AV005Z,M\POE?')7VD]<[email protected]<U6^O\(?SAO9D5AS92SS* M?L?"^]B32SR[P(LK<,SO>[email protected]$;PA,[email protected]*=QRH0^]OP%02P,$ M% ````@`)'VS*G.OFBE-`P``708``#$```!$96)U9R]C;VTO<WEB87-E+VIA M9W5A<B]L;V<O3&]G4V5T=7!397)V:6-E+F-L87-SC51M5Q-'&[email protected](Q1<J+ M8D%)6ZE)@%VTU&JQ6HV(V 4]A7*.'R>;85FZ[.S9W5C\1?UL/P1/.:<_H!_Z MDWIZ9_."[email protected]>Y+9>9Z9^]S[O.2/OW[['[email protected][email protected]=*8,K1WHY* MF]&.BE_YKK(.Y2LI<,G51U;RNBX39;G[TFJH_4"[H< "'7;;81]*KREC.]"> M_0^4/ 8%[email protected]'<C0LY_7#Y6;YC$L,%"N[ D,W_-#/[TO,%C3#=*XZ/BAVFX> MU56\*^N!*F(4(P7D4>21],!/!&XX_ROTFL"$HUT9[,G8-U 9GL!0DLHX)5J2 [email protected];5C'@JK04R(?QDN>*<$<Z,:T5,8=JPN"1P1<>>+2/I'[email protected]=O70KLE4 M>3I^G<>,P 4B;8:,$;H,9I7/856<#P(PSB>8+> *YBBSO\IGV2NU/HPB%394 MG,>U`N9-?O(,_8/6U':U_.]1/L5G)LKGI"L;C2Z2P+7R^6M=[[email protected]%?&$N MWA"8-;J.[5 >^92VR2+Z,JCI,%7'K&^[email protected]*JA5.DKPC-7ME222$^=R5AB;MOI MZL%V\++0H[ *[%N[7P5>Q+Z._905N,D"/UY_].,&&9[7TCW'%'R)U5'<PE=, M0:+2KJ-_"GK7#(^O<<>DX"XKU)%0ZG1<R=7AON\U8YGZ.N3N* I4JJP1L!>' M&JK>] 2FW^V(]CADL-_BOH%]P%YT.X7J*Z%718&<C/H>Z56,W>VFQQSB_EEE MKY]163]V561XY['QGF/W(-8_F]')8Y/S&<5^F.ZDTOUI-Y8NY_-[,Y_/X)"/ M8JQIIP_F&CMNB.-C/H,09J:10X&[.]P)KL.HGN"C-WS+X0)[email protected]!8S3-\&; MDWP#BIV38[C(=2##&L^L'[email protected]&<H95H$K.,$"E]_!R;V',T4,$^N_<69H [email protected]&,]G#^9/V0:Y/46WA\EM<=4XQ__($I:VWN+[40OD456X7MT^Q_'+Y M!"M=.Y=?<;N%;Q8G[K7PW2\8<19;V'J3Y>L1GZ<=5K?(`YBC=9YYO<[X"V11 [email protected]/E4J6<)[email protected];]BO,J^&5YO]*&[C(<^87%H\]YCH)2*NXPD5 MU*AA&\_I;:N<XZE<1WVN8QO#V-]02P,$% ````@`)'VS*F2\64?K" ``O1$` M`#$```!$96)U9R]C;VTO<WEB87-E+VIA9W5A<B]L;V<O365S<V%G94%P<&5N M9&5R+F-L87-SC5?W7UO7%?]>(2$AY"7;&#FND>UB8S&>9W#!KN/@@6T!KD5Q M\"AYB(<DD/24IR<*2=-TKW2G*^F>[DC;.+$AA,09;I/6W6FZ]V[3\1^TGW[O M>Y(0(&SS`^_IW'._]YSO&?>\J_][[#(JT(S_"'@C>LZ(:H<[email protected]>6S:HQ M[4 FHZ6'-*-E1!U3!6JB>JHE.S&H9K66Z+#:,J0-)_5H6J">"XJ]H(RHL9QJ M*$D]ILQ#<<,IL$$W8HJ:4:-Q3>KL&E$*RY%1+:F9>MJ-2H'-#>$%BME,[email protected] [email protected]'3LTIJ7-]JU]`I6JM5W V:$/T?1EX41:Z\ZE!C6C5QV4SE1&DWI6HX8X M[8,/[email protected]*!Y=(G):FF8TID(FMJ*3>6"[email protected]==A:3.C*"2.1-B.FH:FI M=A_\6%F%%5A%[email protected];V_F"P9U2=: K>D4N8)NUK:[email protected]<-VH% MW!DI2)*[U0WA$DM,BF-TS(>UN,F+`-8)K(AI9I[*B&:,):)TJKYA:[B$=&UD M4(F:666N&BU>CSHO7 C2,Y+HP4;RD50G+"\#"RD.6TO<]U+42YXV"ZQ91,F- M!F(-ZT9*)5;K#<5KH:<^A-#HQ58T":Q=W"$W6GC8WD0Z8;Z<KC1(@K9ANQ<* M=C 8UV7"C5T"2V9Y/*Y-<-LU.:0*K;L9K=78C3T\=%3NJ;ONCC:T5]&LO0(W ME5$]8>@9S3 GW* [email protected]_9076GRF'6E EYBTX(#%O%?!$55.+Z<:$!P<%@M?8 MUJ<F<_3[L!=')$>M9=+L6J=:V]MMGH]ZL1_':.^8% ILO/Y&'\+HJN*V[G(E M/S\SW#@AX"NXUJVF>(B_7+*<1*0*KT"O0'76DEFG^= GB^4([email protected]%I9N)$P2 MU,\0+,S*$_EUHO7CC$0[RU)85,V-5Q'4U&T3V!H;RF;Q[5"]&, @#3/CK/*A [email protected]]\(!MQVL+I%<^#-L.$,A7,'2 C<"#!.DU]:-ITTKOHSZ,(BD14P)523WO M*+M<PU$9$QT9Z>\=%)@)>0ZS:*EE5LY,))6#9-*-'+?*U8BIIC)L?\=\>#7& MY?$3$NB8'=R[O!C#:[B]Z]A!I4-/CS&(?'7CM;21%=-+A*R-L"&?0\4S6-%R M5U&%1+P.K_?B'[email protected]&9!G+?=WS!/6QKP)KQ9>O(6`7CP-C9&0\LD)WIU']XA MJ5)PK_11&S=]>)<M>+?LGKG!9"(;%][email protected]=+]%VB[WWXGVRJ-]/H&RAH6ZZ [email protected]#)$J2Q#N.Y:)W%96C:N,!%HE=)M/0Z-1[6,F9"WW/V\K#+VM:!& M1WL--<K\^*AL:@[email protected]]X<,0S<ZU?104C/LGE^VE$K5&()/X)->]NY/"=1V MJ+E8W RJP7FG>_"9Q>JR%,R-S]%G34H$&LM1/2LI8ML<?P'GJ_%Y?%' H8VS MQ86O10;)JK60C%1".:FE=%,K(>I!+[XJ&9GU9IZ*!U_G[1%>#$'&39-M1D;Y M^K>[email protected]@6UI32\BX\U[;)7Z5$UV:<:"3ERY.>.0,-<GUE;,H^9]3(Z;,G. [email protected]:A):FK*J_DPC<>J>'?/D+V%[4DU3<U(%Z[B)][email protected]?NZNI2AH:4"?X%.SO; M4JFV;+8E$HG<'3Q3W[Q]FWDN6-^\.Q.LC_+W^[email protected]<[ ^[email protected]/WS,IYF MQ\[email protected]_(*PK<ZGG)P09XBOXAO3DFRP'RY&*@[email protected]]+J;W-[AYGMT%,9 M/4U:YQ>3!]]A,RWGN1O?DT.*KH_F,[email protected]' \*A'U#(YH4<G6#_##:GP?/YH[ MC9:OY$X]Q?[X8SD;LC6;K+N?H*X:+^"GC$I<E]?/ENOW`XG"X'N+B<:<66EH MV8736CX5%.F>[email protected]/6V.3-< NI_ZLR)2%7C$P-%S(BP5[?/@M?B<9_CU+2^JY MK!G4AU_)UN'"GZT+Y#3[KZ%Q'*4]A7!Z]D:3^0EJ[2QT))'*)+79`]SX!X>^ M5*J82?%X6U=7/I,\^*<7+^)I;.!);H!?#PX9<[email protected](<8KW2 MYJ(DC4WL]4Y4\;^#:W#T$*L2$&<0NHAE]\/W,%;[UTSB)1="D]C0Y=_43?F6 MQDDTMSEGH/1/86>;*^!JFL;+!"YA7\#E>0+[+Z$CX+J(CHH9[._W'YK!$2IV M3N%XQ!;ON(B>QHMXY21NLP1.2^_T?#UG7N_<)*(%59>EJLU7=>55XP6]2DMO M9+Y>Y2QD>A*&)7-;JN9\5;=4G<%8/]7OG,+=C^*-DWAKP.5_^R6\,^ *."_A M/4W-`5?E-.YSXCQ"74V3^#AI^K3_LTW.:7Q)"E=+X=<[email protected]$#O% M3MXN\MG)GNI -0-R)S\[email protected]%4,3PT#[email protected];+4<MOG'7\M9ZAJV.P-J )&]'*CX); M4(]3V(PXMO"2;\!]G-R_S!%^!HUXGEI_Y<?D?SFKUV*;J,-VL9E];B=G[UW8 M+?;@9IZZ1QQET+K0)DYC+R9Y\DF>*D-_D9&$]?8P'I'6B+7X`%/[email protected][email protected]\A MPO39));(,8#)TR2<^# ^`A>Q5]&&K\!!Y!5\DY[:B;;*\FH;INPTPUG*''S6 M(C2%1T.-E_!X: :7^_U/3>&923Q[@6LV)S5,;V ?=^_GVP'NOI7,=%CVUN0Q M\O;R[;F2=-_'3TRG_.SB;WGFO=1V\MDJ4_OJ<[email protected]/6._K./C<?]WI_&\`T_A MA>Y0\S1^)K/Y:NC*>52&KCPI]1XBL)?$*D73UEMU=Y#R8R3N.%?#=+N;==># M'>@M,;$U;V*0.C_'+VC0+_FKDFL/,/BVN0>)YY2M(T]1#Y]R[PK03E%BS 7+ M0R^6% WQ6W[U47X;5TXS;\Y:A_LHD0#VX?8Q?8Q$%7Z#7^>/V4L=J>5%Z%FX [email protected]#[/<+[7VG./Z`/?<[email protected]\B\P)^*[email protected]@XG_EQ +9=DL MJ&VL2H4H`SK$#5H)</4<8U4:+_ W)K,-O#UO; 6<#Q8!O19-PUR(EP!5S $: MIM<>_+UH88LEEQ[.X,5^_[^F\.\YGE=:&&D+SU%$D>W2]LQ1S&P_EOX?4$L# M! H``````*)\LRH````````````````(````4F5L96%S92]02P,$"@`````` M(WVS*@````````````````L```!3;W5R8V4O8V]M+U!+`P0*```````C?;,J M````````````````[email protected]```%-O=7)C92]C;VTO<WEB87-E+U!+`P0*```````C M?;,J````````````````&0```%-O=7)C92]C;VTO<WEB87-E+VIA9W5A<B]0 M2P,$"@``````(WVS*@```````````````!T```!3;W5R8V4O8V]M+W-Y8F%S M92]J86=U87(O;&]G+U!+`P04````" "B?+,[email protected]"]\!``"W`P``,P```%-O M=7)C92]C;VTO<WEB87-E+VIA9W5A<B]L;V<O2F%G=6%R3&]G07!P96YD97(N M:F%V876338O;,!"&SP[D/TP7#$ZHY1;:2T,/A>:R+-M"<EOV,)$GMK*VI$KC M;$+9_U[)']LM2760Q6CFU3.OY&(YGT$8TK2Y/^_04W[ JD.7-Z;*;_OEG:F^ M64NZ)"<.>,3Y;*BY_[%=?X%MK3SL54,[email protected]@5:7+(5/8Q,60.X[L!;1A:4ZK] M&13#[@PUZO+=?+8LHJA%^[email protected](@[email protected]<PH"L"RA+/I',C.LVE!M=8X M!L_AT)8T>ZC)T7PVQHVK! ;AFJ+(IX-8KOZ_YZUZNW_)X<[email protected]+'L9VNT9) MD UZ#Q=6`9TX+/SE*5/&YHD:8J/GL]^#3=89)AF].QI5`O9Y&0312NEJ?0S= M`[email protected](=4G"[[email protected][D <M>1]M_ H-!J=8[(UKD;.IMH</Z0.R>':**9R1 M`;N.WK^6Q[PD>8F31)8U9%<,[email protected]]DF19&1V:AL5(0R=A`P]O.%SKUJ&D M[%4RPH^?T<6=,0VA!D>_.N7(W_7HV=]&IU?DB#NG>];5-:'>.MD83U>*BR*! M>P/&ABZY-J6XIG!QE5>$?&=C?+32$X^\H.D9?B(S.3V%;A[2_.,'?H0T_VPA ME?"0GAXAA[1-]4VP:_%O'V_?>(F,`;7=D9O>]4O\_?X`4$L#!!0````(`*)\ MLRJQ/.(,&@(``(D$```Q````4V]U<F-E+V-O;2]S>6)A<V4O:F%G=6%R+VQO M9R],;V=3971U<%-E<G9I8V4N:F%V8963S8[3,!#'SZW4=QCVE%:J<^%$Q0&Z M%5H$+&*[#^ XT\0EL2U[4AJM^NZ,\]&[email protected]\09S\=O_AZGB]D4^%&V7H8V MDP&7>UDTTB\K6RR_V.()J7%/Z ]:[email protected]^XAOC]O-.]B6.L!.5PC\E5"@ M02\)\\XF>L_^N;[email protected]+$%M<[UK01-D+932Y&]FTT4:DSJI?LH"(XKH442/(AAE M%3W2%&2>0VL;#ZH)9&O0M;.>(! 7K=%[email protected]!(]SJ:#/0(?A9&U-H58K,YVZPLA MN6"),?G;?;?'"$U6:06JDB' J^8!CX0F#UU.44E.^)CM4=%L^M+W.42_BDOF M_>[+18S0./3)?-5;3G]$'ZS.8SN>[email protected][email protected](-_&W\EDLF;Y"LN_ M:ER\A]$F"J0'PTB&F^$3IG64)YG#O-.,H]-TPAU#XX#%+%AJ( M48NS#Y-+G M8!MR#0DA.O\/SK&2Z$&Z56?H7M)Q48._X'-WZBSCZ-=)Q1[JBNB'M:R0X'DX M>W&Z6TP1A+D&AA&MQA#BM(5AM >TM37$!PV*[email protected]/[email protected]]&D935LC"AGV)O3&C40 M7_L*%[R8\_\Z&:6YX1Z0OGMMO:[email protected]$E[C<?GS]=1#C'[email protected](W(,$XTLJ: MG2X:OK':FMB*JY!0W/6U3_'%*50)"6R."EWGAMS%,#9X%,YK0T_$=W?K99SV M,?1J$J_O;2Y)LOAUAGZ\JZ=(^QM02P,$% ````@`HGRS*LEW<E+#! ``D P` M`#$```!3;W5R8V4O8V]M+W-Y8F%S92]J86=U87(O;&]G+TUE<W-A9V5!<'!E M;F1E<BYJ879AK59+3^-($#X'B?]0$PG)89/.,,-<B-!J!%G!+C"(1+L'A*+& M+AR#[?9TMT.\(_[[5C^<F,[email protected]#IM#;'=55WW]=;V&^[L[0+]09 -5W7.%@T<> MEUP.4A$/+E$I'N/WHL \0LD>^8+O[[email protected]=5S^FXR.8SA,%#TF*0$\.,>8HN<;( MKC&GZ7ZG`G*A(1-1\E!!HN&^@CG/HT^[._M#8[[email protected],Y,U"[email protected]\(<%$901D9C M. 0>15")4D)8*BTR2+)"2 U*D],,<[email protected])W=_RZD#'C9'B.QLCA(U-%PO9' M;\L;[email protected]?+QGH59-J:%BR7*>)7F\N<YDEFRM:[email protected]+>_3)(0PY4K!!L= M:O2BMJ'5&I,G3%&+?'?GE^.WD$)C:$A?B"0";O4"N!!Q3.#&"Z(%T/[WW ;: MU^DD#Q 0!*%H7\\M=2:5(AJ9*#4K9)+K- ^Z_R!PB5[S=X ?3[SJP\\RT=H< MG;%N;V0W2]2ES.W[2QTDYJ=EY<W[HTY0+I(00?GG,86-?BT+>I8H`TD3D!BT M*(BQ8^@2%]W1*PD11H*45P;[email protected] 9UT%]WMJ*MPZ9BDDWQ^>:]L"#)P%[PHJ$ M'A5;8_H+JS4>HTB$%\K;N:9WE+JZ_78W>JUP^_EN0R> ;DAQ&@M9=?NO)'_S MM"0LT-NVP19&QI0]K=-SIV.UK2N>X?;[email protected];O=*E")OK#[email protected]_>\5[;[email protected] M\*4%A)Y+Y-&,[email protected]?;<;18>1N&L]9.P==W*)A1>'_0_=?:?2K>YN \UVT$'+81 MD'SXY(>U:[.'BEQ6>/^7?YZR$Y$O:+-YI6"=UAJ!M6QK3JF3E)U2F 2>+-*9 M&!U"NDX.XTYBD59383*LNP;A<\L\W&*='+:"[email protected][)OTJH/U^.;R?ED.KZ: M.LSP&]R,KR_.3[Y/QZ=NJ5=7ATZ'@C><4P6ZLA5TO RQT(G(J?RMJA$N714B MQ.'35/)PE:UTW+&40IY1_TA1!CV&YC/HGO RGFMJ1!MFB6Y<]N&@!< -9E0^ M_W<`&V8]@"\K`*8R^H=O!QN-( "Z7WL!H5XV*G==5E59&,?^$F=&[email protected]<* M]84MB"X8KKG6*/-ZJ;L7_;J\'$;1L*(?G)T=9=F14FPRF;S [=[@X+.^@[W! MMP+V0OI>WL$`]K*]O.NCIHE]U7LVBGM+20?*5?&L-N^FO\E5HTD-AYWO84AV M:*]K&-0A0\=+'XA\B'F2`_<ZPJJ]]NO-&-]T-5;!&V#4S'*"^HPTB"SP72M] MTO*60IX#=2'@:0J94U*P-L]I&G%MM-D$;;>=9=0UJ!R4M+..,57E(>W-DW^) MPX#VTQQ5RSKMNYQLHYN>":J <_-W#,&VJ <F0JB"B:>RH##5ZD30<)*;D6GX M6KWNYQ14QK,URD*JLGH5_BZ#W/^+`^2ZOP'[5H#[email protected],QH4WZ5BQ802- MR/>X#"%O9Y.9".EAG9)+4P3_L+.!-JFU_H3HH26Y+/$D^;3B?49?Q[0T:G-F [email protected])*=BVU7ID"]Q/[email protected]^%2)'B32(-7&3(9W";$TO_MJ'FS!QQS2ED MLWN4]9S<H0*W(#(VT]?=XTI:EZ*9*S -B>>Y0:ACRI2="<V_*:Y%03?+5E5G M/C^ZO/15QX:<'1K_`U!+`0(4``H``````"-]LRH````````````````$```` M````````$ #_00````!C;VTO4$L!`A0`"@``````(WVS*@`````````````` M``L````````````0`/]!(@```&-O;2]S>6)A<V4O4$L!`A0`"@``````(WVS M*@```````````````!(````````````0`/]!2P```&-O;2]S>6)A<V4O:F%G M=6%R+U!+`0(4``H``````"-]LRH````````````````6````````````$ #_ M07L```!C;VTO<WEB87-E+VIA9W5A<B]L;V<O4$L!`A0`"@``````(WVS*@`` M``````````````<````````````0`/]!KP```%-O=7)C92]02P$"% `*```` M```D?;,J````````````````[email protected]```````````! `_T'4````1&5B=6<O4$L! M`A0`"@``````)'VS*@````````````````H````````````0`/]!^ ```$1E M8G5G+V-O;2]02P$"% `*```````D?;,J````````````````$0`````````` M`! `[email protected]`0``1&5B=6<O8V]M+W-Y8F%S92]02P$"% `*```````D?;,J```` M````````````& ```````````! `_T%/`0``1&5B=6<O8V]M+W-Y8F%S92]J M86=U87(O4$L!`A0`"@``````)'VS*@```````````````!P````````````0 M`/]!A0$``$1E8G5G+V-O;2]S>6)A<V4O:F%G=6%R+VQO9R]02P$"% `4```` M" `D?;,J)Y([email protected]"``!J!0``,P```````````" `MH&_`0``1&5B=6<O8V]M M+W-Y8F%S92]J86=U87(O;&]G+TIA9W5A<DQO9T%P<&5N9&5R+F-L87-S4$L! M`A0`% ````@`)'VS*G.OFBE-`P``708``#$````````````@`+:!Z 0``$1E M8G5G+V-O;2]S>6)A<V4O:F%G=6%R+VQO9R],;V=3971U<%-E<G9I8V4N8VQA M<W-02P$"% `4````" `D?;,J9+Q91^L(``"]$0``,0```````````" `MH&$ M" ``1&5B=6<O8V]M+W-Y8F%S92]J86=U87(O;&]G+TUE<W-A9V5!<'!E;F1E M<BYC;&%S<U!+`0(4``H``````*)\LRH````````````````(```````````` M$ #_0;X1``!296QE87-E+U!+`0(4``H``````"-]LRH````````````````+ M````````````$ #_0>01``!3;W5R8V4O8V]M+U!+`0(4``H``````"-]LRH` M```````````````2````````````$ #_00T2``!3;W5R8V4O8V]M+W-Y8F%S M92]02P$"% `*```````C?;,J````````````````&0```````````! `_T$] [email protected]``4V]U<F-E+V-O;2]S>6)A<V4O:F%G=6%R+U!+`0(4``H``````"-]LRH` M```````````````=````````````$ #_0702``!3;W5R8V4O8V]M+W-Y8F%S M92]J86=U87(O;&]G+U!+`0(4`!0````(`*)\LRIF#9 +WP$``+<#```S```` M``````$`( "[email protected]:\2``!3;W5R8V4O8V]M+W-Y8F%S92]J86=U87(O;&]G+TIA M9W5A<DQO9T%P<&5N9&5R+FIA=F%02P$"% `4````" "B?+,JL3SB#!H"``") M! ``,0`````````!`" `MH'?% ``4V]U<F-E+V-O;2]S>6)A<V4O:F%G=6%R M+VQO9R],;V=3971U<%-E<G9I8V4N:F%V85!+`0(4`!0````(`*)\LRK)=W)2 MPP0``) ,```Q``````````$`( "[email protected]@7``!3;W5R8V4O8V]M+W-Y8F%S92]J M86=U87(O;&]G+TUE<W-A9V5!<'!E;F1E<BYJ879A4$L%[email protected]`````5`!4`[email protected]` '`%H<```````` ` end
![]() |
0 |
![]() |
I understand the context but I think it's misapplied. What you're referrring to is a situation where the Jag server goes down, in which case a buffered log will not show up. In the case that you mention, if the Jag server goes down, the transaction was very likely not completed causing the write to the db to fail so effectively you have the same net effect, no logging, but you have incurred signifcant overhead by applying all writes through the db. I agree that a db can handle concurrency issues likely much better than a well thought out file concurrency algorithm but in this case the marginal utility is non-existent. Carson ___________________________________________________________ Carson Hager Team Sybase Cynergy Systems, Inc. Sybase Enterprise Application Studio Consulting and Training http://www.cynergysystems.com "Jason Weiss [Sybase]" <[email protected]> wrote in message news:T#[email protected] > Since we are on logging, let me throw this out. Many operating systems use > buffered I/Os. In the event of a Jag crash, the last line inside of the > srv.log may not actually be the last thing that executed. Throw in Jaguar's > multi-threading issues, and you see logging lines interwooven among a number > of components, further complicating the issue. > > The _best_ approach for logging is to use a database and a component that > transactionally writes out to a table(s) in the database. In this way, you > tend to have more peace of mind that _everything_ that was queued to be > logged will indeed show up. > > Giving credit where credit is due, Dave W. first explained this to me many, > many months back. > > my $0.02 worth... or should I say Dave's :-) > > -- > Jason Weiss > eBusiness Division > > * remove __nospam__ from address to e-mail directly. > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > message news:[email protected] > > I'd love to see them. Send them on when you get a moment. > > > > > > Thanks, > > > > C > > > > ___________________________________________________________ > > > > Carson Hager > > Team Sybase > > Cynergy Systems, Inc. > > Sybase Enterprise Application Studio Consulting and Training > > http://www.cynergysystems.com > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > news:[email protected] > > > It can. I wrote a bunch of output handlers that write to standard out, > > > special log files, and the message service. Total time coding, about 2 > > > hours. > > > > > > If you want the samples, let me know. > > > > > > > > > /j > > > > > > -- > > > Jonathan Baker > > > eBusiness Division > > > Sybase, Inc. > > > > > > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > > > message news:[email protected] > > > > Does it redirect standard out as well? > > > > > > > > > > > > C > > > > > > > > ___________________________________________________________ > > > > > > > > Carson Hager > > > > Team Sybase > > > > Cynergy Systems, Inc. > > > > Sybase Enterprise Application Studio Consulting and Training > > > > http://www.cynergysystems.com > > > > > > > > > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > > > news:[email protected] > > > > > Take a look at Log4J, from the Apache project. It provides a > > framework > > > > for > > > > > logging that could do most of the work for you. > > > > > > > > > > > > > > > -- > > > > > Jonathan Baker > > > > > eBusiness Division > > > > > Sybase, Inc. > > > > > > > > > > > > > > > "Bill Green[TeamSybase]" <[email protected]> wrote in > message > > > > > news:[email protected] > > > > > > Sure, but you'll have to write the logging functionality yourself. > I > > > > > > have an eventlogger component in my server that gets the log file > > name > > > > > > from the package properties and creates a log file for each > package. > > > You > > > > > > could do Server, Package, Component or whatever you choose, but > you > > > will > > > > > > have to write code to do it. In fact I recommend that you do NOT > > write > > > > > > application messages to the srv.log file. > > > > > > > > > > > > regards, > > > > > > Bill > > > > > > > > > > > > Borre Nordbakken wrote: > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > Is it possible to log to other(s) file then srv.log > > > > > > > > > > > > > > Like one file per app. > > > > > > > > > > > > > > -- > > > > > > > Borre > > > > > > > > > > > > -- > > > > > > Bill Green[TeamSybase] > > > > > > ----------------------------------------------------------- > > > > > > Vote Now: Readers Choice Awards > > > > > > http://www.sys-con.com/java/readerschoice2001/ > > > > > > > > > > > > > > > > > > Good Links to know, good places to go: > > > > > > > > > > > > Developer stuff on my.sybase.com - Sign up, visit often > > > > > > Find things like: > > > > > > -- EAServer 3.6.1 maintenance release is available > > > > > > -- PowerBuilder 7.03 maintenance release available > > > > > > -- Components, White papers, articles and more > > > > > > -- Web DataWindow Article Series (Author: Larry Cermak) > > > > > > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > > > > > > > > > > > PFC Guide - http://www.pfcguide.com > > > > > > > > > > > > Power3 - Custom Training - http://www.power3.com > > > > > > Bill Green @ Power3 - [email protected] > > > > > > ----------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
![]() |
0 |
![]() |
Keep in mind as well that I've been at the DC chili cook off all day... :) Carson ___________________________________________________________ Carson Hager Team Sybase Cynergy Systems, Inc. Sybase Enterprise Application Studio Consulting and Training http://www.cynergysystems.com "Carson Hager [Team Sybase]" <[email protected]> wrote in message news:[email protected] > I understand the context but I think it's misapplied. What you're > referrring to is a situation where the Jag server goes down, in which case a > buffered log will not show up. In the case that you mention, if the Jag > server goes down, the transaction was very likely not completed causing the > write to the db to fail so effectively you have the same net effect, no > logging, but you have incurred signifcant overhead by applying all writes > through the db. I agree that a db can handle concurrency issues likely much > better than a well thought out file concurrency algorithm but in this case > the marginal utility is non-existent. > > > Carson > > ___________________________________________________________ > > Carson Hager > Team Sybase > Cynergy Systems, Inc. > Sybase Enterprise Application Studio Consulting and Training > http://www.cynergysystems.com > > > > "Jason Weiss [Sybase]" <[email protected]> wrote in message > news:T#[email protected] > > Since we are on logging, let me throw this out. Many operating systems > use > > buffered I/Os. In the event of a Jag crash, the last line inside of the > > srv.log may not actually be the last thing that executed. Throw in > Jaguar's > > multi-threading issues, and you see logging lines interwooven among a > number > > of components, further complicating the issue. > > > > The _best_ approach for logging is to use a database and a component that > > transactionally writes out to a table(s) in the database. In this way, > you > > tend to have more peace of mind that _everything_ that was queued to be > > logged will indeed show up. > > > > Giving credit where credit is due, Dave W. first explained this to me > many, > > many months back. > > > > my $0.02 worth... or should I say Dave's :-) > > > > -- > > Jason Weiss > > eBusiness Division > > > > * remove __nospam__ from address to e-mail directly. > > > > > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > > message news:[email protected] > > > I'd love to see them. Send them on when you get a moment. > > > > > > > > > Thanks, > > > > > > C > > > > > > ___________________________________________________________ > > > > > > Carson Hager > > > Team Sybase > > > Cynergy Systems, Inc. > > > Sybase Enterprise Application Studio Consulting and Training > > > http://www.cynergysystems.com > > > > > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > > news:[email protected] > > > > It can. I wrote a bunch of output handlers that write to standard > out, > > > > special log files, and the message service. Total time coding, about > 2 > > > > hours. > > > > > > > > If you want the samples, let me know. > > > > > > > > > > > > /j > > > > > > > > -- > > > > Jonathan Baker > > > > eBusiness Division > > > > Sybase, Inc. > > > > > > > > > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote > in > > > > message news:[email protected] > > > > > Does it redirect standard out as well? > > > > > > > > > > > > > > > C > > > > > > > > > > ___________________________________________________________ > > > > > > > > > > Carson Hager > > > > > Team Sybase > > > > > Cynergy Systems, Inc. > > > > > Sybase Enterprise Application Studio Consulting and Training > > > > > http://www.cynergysystems.com > > > > > > > > > > > > > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > > > > news:[email protected] > > > > > > Take a look at Log4J, from the Apache project. It provides a > > > framework > > > > > for > > > > > > logging that could do most of the work for you. > > > > > > > > > > > > > > > > > > -- > > > > > > Jonathan Baker > > > > > > eBusiness Division > > > > > > Sybase, Inc. > > > > > > > > > > > > > > > > > > "Bill Green[TeamSybase]" <[email protected]> wrote in > > message > > > > > > news:[email protected] > > > > > > > Sure, but you'll have to write the logging functionality > yourself. > > I > > > > > > > have an eventlogger component in my server that gets the log > file > > > name > > > > > > > from the package properties and creates a log file for each > > package. > > > > You > > > > > > > could do Server, Package, Component or whatever you choose, but > > you > > > > will > > > > > > > have to write code to do it. In fact I recommend that you do NOT > > > write > > > > > > > application messages to the srv.log file. > > > > > > > > > > > > > > regards, > > > > > > > Bill > > > > > > > > > > > > > > Borre Nordbakken wrote: > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > Is it possible to log to other(s) file then srv.log > > > > > > > > > > > > > > > > Like one file per app. > > > > > > > > > > > > > > > > -- > > > > > > > > Borre > > > > > > > > > > > > > > -- > > > > > > > Bill Green[TeamSybase] > > > > > > > ----------------------------------------------------------- > > > > > > > Vote Now: Readers Choice Awards > > > > > > > http://www.sys-con.com/java/readerschoice2001/ > > > > > > > > > > > > > > > > > > > > > Good Links to know, good places to go: > > > > > > > > > > > > > > Developer stuff on my.sybase.com - Sign up, visit often > > > > > > > Find things like: > > > > > > > -- EAServer 3.6.1 maintenance release is available > > > > > > > -- PowerBuilder 7.03 maintenance release available > > > > > > > -- Components, White papers, articles and more > > > > > > > -- Web DataWindow Article Series (Author: Larry Cermak) > > > > > > > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > > > > > > > > > > > > > PFC Guide - http://www.pfcguide.com > > > > > > > > > > > > > > Power3 - Custom Training - http://www.power3.com > > > > > > > Bill Green @ Power3 - [email protected] > > > > > > > ----------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
![]() |
0 |
![]() |
In article <[email protected]>, [email protected] says... > Keep in mind as well that I've been at the DC chili cook off all day... :) > I'd probably only be concerned if you were at the Cook off, had been out till 5 am the night before and was drinking before the cook off. Oh wait - never mind. I am worried about the response now<g> Mark
![]() |
0 |
![]() |
My server keeps dieing on me and the log never provides any clues (no PB application errors, nothing). The last line is the system tracing line that says how long a component call lasted (TRACE: package/component/method: 0 ms 205 bytes in, 141 bytes out ([email protected])). Could this buffered I/O be the reason why I never get anything more helpful to figure out why it died? Is there anyway to tell the O/S to not use buffered I/O? Rewritting my components to write to a database file isn't really an option at this point (it's live) and from other posts, it doesn't sound like that will help anyway... Any other way to get more clues? Can I turn on other kinds of tracing?? Thanks, Daniel "Jason Weiss [Sybase]" <[email protected]> wrote in message news:T#[email protected] > Since we are on logging, let me throw this out. Many operating systems use > buffered I/Os. In the event of a Jag crash, the last line inside of the > srv.log may not actually be the last thing that executed. Throw in Jaguar's > multi-threading issues, and you see logging lines interwooven among a number > of components, further complicating the issue. > > The _best_ approach for logging is to use a database and a component that > transactionally writes out to a table(s) in the database. In this way, you > tend to have more peace of mind that _everything_ that was queued to be > logged will indeed show up. > > Giving credit where credit is due, Dave W. first explained this to me many, > many months back. > > my $0.02 worth... or should I say Dave's :-) > > -- > Jason Weiss > eBusiness Division > > * remove __nospam__ from address to e-mail directly. > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > message news:[email protected] > > I'd love to see them. Send them on when you get a moment. > > > > > > Thanks, > > > > C > > > > ___________________________________________________________ > > > > Carson Hager > > Team Sybase > > Cynergy Systems, Inc. > > Sybase Enterprise Application Studio Consulting and Training > > http://www.cynergysystems.com > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > news:[email protected] > > > It can. I wrote a bunch of output handlers that write to standard out, > > > special log files, and the message service. Total time coding, about 2 > > > hours. > > > > > > If you want the samples, let me know. > > > > > > > > > /j > > > > > > -- > > > Jonathan Baker > > > eBusiness Division > > > Sybase, Inc. > > > > > > > > > "Carson Hager [Team Sybase]" <[email protected]> wrote in > > > message news:[email protected] > > > > Does it redirect standard out as well? > > > > > > > > > > > > C > > > > > > > > ___________________________________________________________ > > > > > > > > Carson Hager > > > > Team Sybase > > > > Cynergy Systems, Inc. > > > > Sybase Enterprise Application Studio Consulting and Training > > > > http://www.cynergysystems.com > > > > > > > > > > > > > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > > > > news:[email protected] > > > > > Take a look at Log4J, from the Apache project. It provides a > > framework > > > > for > > > > > logging that could do most of the work for you. > > > > > > > > > > > > > > > -- > > > > > Jonathan Baker > > > > > eBusiness Division > > > > > Sybase, Inc. > > > > > > > > > > > > > > > "Bill Green[TeamSybase]" <[email protected]> wrote in > message > > > > > news:[email protected] > > > > > > Sure, but you'll have to write the logging functionality yourself. > I > > > > > > have an eventlogger component in my server that gets the log file > > name > > > > > > from the package properties and creates a log file for each > package. > > > You > > > > > > could do Server, Package, Component or whatever you choose, but > you > > > will > > > > > > have to write code to do it. In fact I recommend that you do NOT > > write > > > > > > application messages to the srv.log file. > > > > > > > > > > > > regards, > > > > > > Bill > > > > > > > > > > > > Borre Nordbakken wrote: > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > Is it possible to log to other(s) file then srv.log > > > > > > > > > > > > > > Like one file per app. > > > > > > > > > > > > > > -- > > > > > > > Borre > > > > > > > > > > > > -- > > > > > > Bill Green[TeamSybase] > > > > > > ----------------------------------------------------------- > > > > > > Vote Now: Readers Choice Awards > > > > > > http://www.sys-con.com/java/readerschoice2001/ > > > > > > > > > > > > > > > > > > Good Links to know, good places to go: > > > > > > > > > > > > Developer stuff on my.sybase.com - Sign up, visit often > > > > > > Find things like: > > > > > > -- EAServer 3.6.1 maintenance release is available > > > > > > -- PowerBuilder 7.03 maintenance release available > > > > > > -- Components, White papers, articles and more > > > > > > -- Web DataWindow Article Series (Author: Larry Cermak) > > > > > > -- Jaguar Agent for Web Servers (HTTP access to PB components) > > > > > > > > > > > > PFC Guide - http://www.pfcguide.com > > > > > > > > > > > > Power3 - Custom Training - http://www.power3.com > > > > > > Bill Green @ Power3 - [email protected] > > > > > > ----------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
![]() |
0 |
![]() |
Having been to several DC Chili Cookoffs myself, I would only be concerned if I had to sit next to him the next day... ;>( If you ever get the chance to go to the Cookoff, go. It's awesome. "Mark Pfeifer[TeamSybase]" <[email protected]> wrote in message news:[email protected] > In article <[email protected]>, > [email protected] says... > > Keep in mind as well that I've been at the DC chili cook off all day... :) > > > > I'd probably only be concerned if you were at the Cook off, had been out > till 5 am the night before and was drinking before the cook off. > > Oh wait - never mind. I am worried about the response now<g> > > Mark >
![]() |
0 |
![]() |
I so did NOT need to be reminded of the Chili cookoff... some days, I really miss DC. :-) (But definitely not the day after... especially next to Carson! ;-) ) -- Jonathan Baker eBusiness Division Sybase, Inc. "News Group" <n e w s g r o u p s t u f [email protected]> wrote in message news:[email protected] > Having been to several DC Chili Cookoffs myself, I would only be concerned > if I had to sit next to him the next day... > > ;>( > > If you ever get the chance to go to the Cookoff, go. It's awesome. > > > "Mark Pfeifer[TeamSybase]" <[email protected]> wrote in message > news:[email protected] > > In article <[email protected]>, > > [email protected] says... > > > Keep in mind as well that I've been at the DC chili cook off all day... > :) > > > > > > > I'd probably only be concerned if you were at the Cook off, had been out > > till 5 am the night before and was drinking before the cook off. > > > > Oh wait - never mind. I am worried about the response now<g> > > > > Mark > > > >
![]() |
0 |
![]() |
Yep, that's what I remember! Ah, well, I'll try to make it next year. :-) -- Jonathan Baker eBusiness Division Sybase, Inc. "Carson Hager [Team Sybase]" <[email protected]> wrote in message news:[email protected] > It ended up being about 14 hours of solid drinking. Sunday was not > pleasant. :) > > > C > > ___________________________________________________________ > > Carson Hager > Team Sybase > Cynergy Systems, Inc. > Sybase Enterprise Application Studio Consulting and Training > http://www.cynergysystems.com > > > > "Jonathan Baker [Sybase]" <[email protected]> wrote in message > news:[email protected] > > I so did NOT need to be reminded of the Chili cookoff... some days, I > really > > miss DC. :-) (But definitely not the day after... especially next to > > Carson! ;-) ) > > > > -- > > Jonathan Baker > > eBusiness Division > > Sybase, Inc. > > > > > > "News Group" <n e w s g r o u p s t u f [email protected]> wrote in message > > news:[email protected] > > > Having been to several DC Chili Cookoffs myself, I would only be > concerned > > > if I had to sit next to him the next day... > > > > > > ;>( > > > > > > If you ever get the chance to go to the Cookoff, go. It's awesome. > > > > > > > > > "Mark Pfeifer[TeamSybase]" <[email protected]> wrote in message > > > news:[email protected] > > > > In article <[email protected]>, > > > > [email protected] says... > > > > > Keep in mind as well that I've been at the DC chili cook off all > > day... > > > :) > > > > > > > > > > > > > I'd probably only be concerned if you were at the Cook off, had been > out > > > > till 5 am the night before and was drinking before the cook off. > > > > > > > > Oh wait - never mind. I am worried about the response now<g> > > > > > > > > Mark > > > > > > > > > > > > > > > >
![]() |
0 |
![]() |
It ended up being about 14 hours of solid drinking. Sunday was not pleasant. :) C ___________________________________________________________ Carson Hager Team Sybase Cynergy Systems, Inc. Sybase Enterprise Application Studio Consulting and Training http://www.cynergysystems.com "Jonathan Baker [Sybase]" <[email protected]> wrote in message news:[email protected] > I so did NOT need to be reminded of the Chili cookoff... some days, I really > miss DC. :-) (But definitely not the day after... especially next to > Carson! ;-) ) > > -- > Jonathan Baker > eBusiness Division > Sybase, Inc. > > > "News Group" <n e w s g r o u p s t u f [email protected]> wrote in message > news:[email protected] > > Having been to several DC Chili Cookoffs myself, I would only be concerned > > if I had to sit next to him the next day... > > > > ;>( > > > > If you ever get the chance to go to the Cookoff, go. It's awesome. > > > > > > "Mark Pfeifer[TeamSybase]" <[email protected]> wrote in message > > news:[email protected] > > > In article <[email protected]>, > > > [email protected] says... > > > > Keep in mind as well that I've been at the DC chili cook off all > day... > > :) > > > > > > > > > > I'd probably only be concerned if you were at the Cook off, had been out > > > till 5 am the night before and was drinking before the cook off. > > > > > > Oh wait - never mind. I am worried about the response now<g> > > > > > > Mark > > > > > > > > >
![]() |
0 |
![]() |
In article <[email protected]>, [email protected] says... > Yep, that's what I remember! You actually remember 14 hours of drinking? <g> Mark
![]() |
0 |
![]() |
My vote is that his watch probably stopped or got broken somehow. After his recovery, he knows that he partied for _at least_ 14 hours since that was when his watch stopped. Kinda like when the electric goes off and all the digital clocks are reset to 12:00 :-) -- Jason Weiss eBusiness Division * remove __nospam__ from address to e-mail directly. "Mark Pfeifer[TeamSybase]" <[email protected]> wrote in message news:[email protected] > In article <[email protected]>, [email protected] > says... > > Yep, that's what I remember! > > You actually remember 14 hours of drinking? <g> > > Mark >
![]() |
0 |
![]() |
So *that's* why my clocks keep blinking... "Jason Weiss [Sybase]" wrote: > My vote is that his watch probably stopped or got broken somehow. After his > recovery, he knows that he partied for _at least_ 14 hours since that was > when his watch stopped. Kinda like when the electric goes off and all the > digital clocks are reset to 12:00 :-) > > -- > Jason Weiss > eBusiness Division > > * remove __nospam__ from address to e-mail directly. > > "Mark Pfeifer[TeamSybase]" <[email protected]> wrote in message > news:[email protected] > > In article <[email protected]>, [email protected] > > says... > > > Yep, that's what I remember! > > > > You actually remember 14 hours of drinking? <g> > > > > Mark > > -- Bill Green[TeamSybase] ----------------------------------------------------------- Vote Now: Readers Choice Awards http://www.sys-con.com/java/readerschoice2001/ Good Links to know, good places to go: Developer stuff on my.sybase.com - Sign up, visit often Find things like: -- EAServer 3.6.1 maintenance release is available -- PowerBuilder 7.03 maintenance release available -- Components, White papers, articles and more -- Web DataWindow Article Series (Author: Larry Cermak) -- Jaguar Agent for Web Servers (HTTP access to PB components) PFC Guide - http://www.pfcguide.com Power3 - Custom Training - http://www.power3.com Bill Green @ Power3 - [email protected] -----------------------------------------------------------
![]() |
0 |
![]() |