Click here to Skip to main content
15,899,754 members
Home / Discussions / Java
   

Java

 
GeneralRe: Annotation Processor in Eclipse Pin
Nagy Vilmos10-Nov-11 10:54
professionalNagy Vilmos10-Nov-11 10:54 
AnswerRe: Annotation Processor in Eclipse Pin
Skippums10-Nov-11 12:52
Skippums10-Nov-11 12:52 
GeneralCode Analysis Pin
gamer11278-Nov-11 6:59
gamer11278-Nov-11 6:59 
GeneralRe: Code Analysis Pin
Nagy Vilmos8-Nov-11 7:06
professionalNagy Vilmos8-Nov-11 7:06 
Questionstring compare java problem Pin
Jim Crafton8-Nov-11 3:51
Jim Crafton8-Nov-11 3:51 
AnswerRe: string compare java problem Pin
Nagy Vilmos8-Nov-11 4:23
professionalNagy Vilmos8-Nov-11 4:23 
GeneralRe: string compare java problem Pin
Jim Crafton8-Nov-11 5:32
Jim Crafton8-Nov-11 5:32 
GeneralRe: string compare java problem Pin
Nagy Vilmos8-Nov-11 5:47
professionalNagy Vilmos8-Nov-11 5:47 
I am going top guess you need to check the logic of policy.getLogFileName();. Personally, I would move all the logic into the logger, it's its job anyway. For ease of sorting, make the log-file name app-yyyy-mm-dd.log and check that it's being created correctly.

As an aside, if the log writer is getting to be a bottleneck, why not use a multiple read / single write queue? That way you can remove all the logic of checking the file name and re-opening file streams. The log messages go in on one side from where ever and the writer is on a separate thread. Once there is something in the queue, it starts writing and if it gets an empty queue, it closes the file stream.


Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

GeneralRe: string compare java problem Pin
Jim Crafton8-Nov-11 5:56
Jim Crafton8-Nov-11 5:56 
GeneralRe: string compare java problem Pin
Richard MacCutchan8-Nov-11 9:22
mveRichard MacCutchan8-Nov-11 9:22 
GeneralRe: string compare java problem Pin
Nagy Vilmos8-Nov-11 10:03
professionalNagy Vilmos8-Nov-11 10:03 
GeneralRe: string compare java problem Pin
Richard MacCutchan8-Nov-11 10:06
mveRichard MacCutchan8-Nov-11 10:06 
GeneralRe: string compare java problem Pin
anshul.zunke26-Nov-11 17:26
anshul.zunke26-Nov-11 17:26 
AnswerRe: string compare java problem Pin
jschell8-Nov-11 10:10
jschell8-Nov-11 10:10 
GeneralRe: string compare java problem Pin
TorstenH.8-Nov-11 19:07
TorstenH.8-Nov-11 19:07 
GeneralRe: string compare java problem Pin
anshul.zunke26-Nov-11 17:28
anshul.zunke26-Nov-11 17:28 
QuestionNurse Rostering using Clonal Selection Algorithm Pin
rohaya887-Nov-11 19:58
rohaya887-Nov-11 19:58 
JokeRe: Nurse Rostering using Clonal Selection Algorithm Pin
Gerben Jongerius7-Nov-11 20:30
Gerben Jongerius7-Nov-11 20:30 
AnswerHints Pin
TorstenH.7-Nov-11 21:43
TorstenH.7-Nov-11 21:43 
GeneralRe: Hints Pin
rohaya8810-Nov-11 3:21
rohaya8810-Nov-11 3:21 
AnswerRe: Nurse Rostering using Clonal Selection Algorithm Pin
Richard MacCutchan7-Nov-11 22:44
mveRichard MacCutchan7-Nov-11 22:44 
QuestionCompile-time Annotation Processing [Solved] Pin
Skippums7-Nov-11 16:35
Skippums7-Nov-11 16:35 
AnswerRe: Compile-time Annotation Processing Pin
Skippums15-Nov-11 14:32
Skippums15-Nov-11 14:32 
QuestionTransfer File between client and server with TCP Socket Pin
lolostar7-Nov-11 5:39
lolostar7-Nov-11 5:39 
AnswerRe: Transfer File between client and server with TCP Socket Pin
Luc Pattyn7-Nov-11 5:58
sitebuilderLuc Pattyn7-Nov-11 5:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.