Messages - jumper [ switch to compact view ]

Pages: [1] 2 3 4 5next
1
Frankly, writing GUIs in Java sucks

Yea, it was a very long time ago when I tried to write a GUI. At that time I think the only thing that was available was the SWING libraries.

2
Especially the GUI-part, when not building a web application, can be hard. I try to avoid Java-based-GUI applications where possible :tellme:

Like a lot of Java libraries, it's free and open source, Log4J just like the .NET port Log4Net.

Yep, the GUI part is what I was trying to learn. I didn't do very good and found that understanding it at all had a steep learning curve.

Also, I tried Log4Net and couldn't get it to work. Right now, I'm making a Log class now and besides writing to a file, it will also write to the event log just as soon as I know how to do it :)




3
Hm, being a mostly Java developer, with just some occasional .NET (C#) work, I didn't take a very close look, as I'm used to Log4J as a logging framework, so I intend to use Log4Net in my .NET projects. Though I've written similar loggers in older projects :tellme:

Hi, and thanks for posting. I always respect Java developers. I tried learning it once and just didn't do very good. I've heard of Log4 before. Is it free? I'm sure I can find out by searching though. Have a great day.

4
Hi everyone. I was beginning to wonder why nobody said anything about the code, so I went back to the code to take a look. I'm glad I said it was a long time ago, because the code contained a lot of crap it didn't need in it. I was so worried about what to do if the logfile was gone, I didn't think about the code I was actually writing. So, I apologize for the code, and I will give you the updated version that does everything that the first code does.

And it's only 3 lines.

Code: Visual Basic [Select]
  1. Public Sub LogToFile(LogMessage As String)
  2.         Using sw = AppendText(logfilename)
  3.             sw.WriteLine(LogMessage)
  4.         End Using
  5.     End Sub

I forgot that append would add to the file or create the file.
So yep, I'm dumb.

5
Well, that's good!  The highlighting might not be working, but the code formatting is working, which is one thing.  I guess we should ping mouser about the highlighting.

Yea, I'm glad I found out what was going on. I think it would be a good thing to let someone know, but I vote for you because I only joined today :cool:

Pages: [1] 2 3 4 5next
Go to full version