Annoying issue with Logger

When I tell my FileHandler to append to an existing XML log file, it adds the follow two lines to the log file every time:
<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<!DOCTYPE log SYSTEM "logger.dtd">
This means that, if I have had hundreds of iterations of my loop, i get hundreds of XML headers in my log file, which seems asinine (not to mention the fact that a new LOG tag is created every time too). Is there anyway to prevent this from happening?

I'm sure you'll just take issue with my response as well, based on a topic from the other day...
but I'd have to say it sounds like you're using loggers for the wrong reason, if you think you need to append to an existing XML-based one. Maybe you should be logging to a flat text-based one instead, or shouldn't be integrating with (and dependent on) logger output to the degree that you are. There's probably a different design approach needed, but of course I'm not all that involved in your project. Just trying to point out that you may need to revisit the design instead of sticking with it the way you are.

Similar Messages

  • Some annoying issue with my Z97 Gaming 7

    First issues.
    -SSD is detected, but doesn't show folder even though it shows there is data on the drive. I have to reboot and then go into the bios.  I don't do anything in my bios I just need to get there and save and close. Then it will work until my system goes into sleep mode.  Sometimes after coming out of sleep mode folder are gone again and other times are just random.  --- Tested drive on my other system works fine.
    - My front USB stop working.  The items I have plug into the front USB are not be detect at all.  Test components on my other computer all is working well.
    and now my SSD isn't be detected.
    This is a fresh install of Windows.
    This is my last MSI product that I will purchase.  I haven't had so many issue from a Manufacture.  I have to run my Graphics cards at full power so I don't get flickering or others issues.  Now the issues with my motherboard. 

    Quote from: pandaz on 07-October-14, 17:10:02
    Which particular brand and model of SSD are you using?   problem happened in Win 8.1?
    OCZ and Win8.1.  It doesn't show up in BIOS sometimes.
    Main Board: Gaming 7
    Bios Version: 1.6
    Video Card: Two - MSI Gaming 280X running in Cross-Fire
    PSU:   Antec 900w HCG-900
    12v rail Rating of listed PSU: 40A
    CPU: i7-4970k
    Memory: 4 x 4Gb - G. Skill Ripjaws F3-17000
    SSD/ HDD: Crucial M4-CT256M4SSD2 / OCZ Vertex2 / WDC WD1001FALS
    CPU COOLER: Stock
    Raid Card: N/A
    Sound Card: On-board with dongle.
    Any Additional hardware plugged into your system: USB Devices - G710+, G700, G930, C920, Focusrite Scarlett 8i6, HP8600P Plus.
    OC: (Yes / No) - No
    Operating System: Windows 8.1 64 bit

  • Swift keyboard; annoying issue with Facebook

    Hello all,
    I'm not sure if this is something for the forum so apologise in advance if this is the case.
    My only main gripe with the Swift keyboard is when it's on and you enter someone's name to tag for someone reason when you hit enter it removes the tag, you have to turn back to the normal keyboard to avoid this.
    It's very annoying - can anyone help at all ?
    Thanks
    Alex

    Hi John,
    this is from the FAQ Site of Remote Desktop Client on Mac. you can find it here:http://technet.microsoft.com/en-us/library/dn473006.aspx
    How do I type various symbols on a Mac keyboard?
    The location of many symbols on your keyboard depends on the used keyboard layout and language setting.
    also
    Why are the characters mixed up in the session?
    This issue can occur if the keyboard language has been switched on the remote PC while running a remote desktop session. In the case you would like to switch to a different keyboard language follow these instructions.
    Important
    The remote PC selects the system language of the device running the remote desktop client and not the keyboard language. When switching the keyboard language on your device, you need to manually switch the keyboard language on the remote PC.
    Open settings on your device.
    Tap General and then tap International.
    Tap Language and select the language running on the remote PC.
    Open the RD Client and connect to the remote PC and check if the Windows keyboard language matches the language that you selected.
    cheers Stephan

  • Annoying issue with "special characters"

    I need to produce these special characters:
    ¤
    and
    ø
    Now ofcourse I can copy and paste to get them, but after writing them to a file, they don't produce the same character, if that doesn't make sense I'll try to clear it up. I run a windows game through wine, and in the configuration file I need to use special characters in my name, they look fine in the editor, after  I write the file, then go in game, the characters are completely different. Which is quite annoying. Is there anyway I can get these to truely be the character I want on linux?
    edit:
    more info, I wrote the file with vim, I then opened it with nano to see exactly what I saw in game. Is this an output problem of vim?

    user wrote:
    http://www.vim.org/search.php
    I guess there is the right place to ask about "encoding".
    PS: http://www.vim.org/community.php
    Thanks for the links

  • Annoying issue with LV7

    I found out I can not input the character # (ASCII code 35) with LV 7:
    - on a string control the character is simply not typed
    - on the diagram typing # seems to be a shortcut for enabling the grid alignment.
    I'm using an italian keyboard.
    This issue occurs only with LV7.
    Thanks,
    Alberto

    Hi Alberto,
    A friend of mine was telling me that he had problems with control charaters and LV7. I tried his code and it was fine on my machine. He found a workaround and we never found the source of the mystery.
    As for myself, I now see a strange behavior with LV7.
    It closes itself while I wire-up a new vi... >(
    It happened twice yesterday... -strange-
    My LV7 was solid until then...
    -JLV-

  • Funky and annoying issues with my ipods harddrive, can anyone help please?

    Hi everyone,
    this is the first time ive been to an ipod support forum, ive tried everything and this is the last resort please help!
    ive got a 4thgeneration ipod (non-color) and this is my 4th one, after a random period of time (between 4 weeks to 2 months) they all break. The hard drive starts making crazy sounds, randomly the unhappy face appears and eventually you lose everything, im not having a great experience with this product and apple refuse to refund saying theyll just replace it with another one (3 ipods later its still not working)
    It hasn't been abused, i've treat this one like it's worth its weight in gold and its barely been moved since i've gotten it (mostly been using it for temporarily storing files). I unmount it (safely eject/remove hardware) before unplugging it and do everything by the book.
    This time it's gone beyond what normally goes wrong..
    As a last resort i tried restoring the ipod to factory settings, something must have gone wrong during this process because now the ipod is convinced that it is just a 400meg drive, is there anything i can do to restore it to its full 40gb?
    formatting just gives the option to format it to 400meg, fdisk wont work because its a USB disk, same thing with partition magic.
    any ideas?
    im desperate lol! also, if not, what are the chances of convincing apple to refund me so I can get an iRiver?
    having said that, my friend has the exact same model and has had it about 7 months without any problems, maybe im just unlucky!
    id prefer to repair it rather than send it off again for another refurbished model, any ideas?
    thanks in advance guys..

    "Did you do this within the iPod interface?"
    not sure what you mean sorry!, I used the ipod updater tool to restore it to factory settings.
    Apologize for that one, I somehow assumed you tried to reset it with holding "menu" and the center button or via "settings->reset to factory setting" in the iPods menu.
    i've tried formatting it with windows but it only allows me to format it to the drives 'maximum capacity' of 400megs, fdisk for linux tells me the maximum partition size can be 400megs also
    Well, that might be the thing you shouldn't have done. The iPod must be formatted with the Updater! Other programs (like Windows Explorer and Partition Magic) mess up the iPods firmware.
    As the "400MB" appeared after the Updater treatment, the drive surely is messed up. Try the latest Updater once again. If this doesn't work out, you could run chkdsk and use the Updater afterwards.
    If there's still no avail, you would have to send it in one more time.

  • Annoying issues with MS optical trackball

    I just recieved a Microsoft optical trackball of this model,[ purchased via eBay. Very nice, better than my old mouse... But there's a weird problem with it. Occasionally, the optical tracking seems to "slip" in some way, and the cursor fails to move as much as it ought to, or moves more than it should - kind of like what happens to an old-style mouse or trackball with filthy rollers. Both the trackball's cradle and the ball itself are intact and completely clean, and I'm sure I'm using the right driver (imPS/2). Yet the cursor is not moving in a smooth fashion, and sometimes fails to move at all for a few seconds. What the hell is going on? :shock:
    (It's interesting to note that this "slippage" is more pronounced with vertical than horizontal motion. The horizontal motion is generally fine, but the cursor often moves a shorter distance than it should vertically - as I said before, just like what you get with a dirty roller-mouse.)

    I have the exact same trackball and its been working fine for me for years.  I purchaced it back when logitech downsized their trackballs and they were no longer comfortable for my big hands.  I've been using this configuration for it in my xorg.conf for a while now and have had none of the problems you've mentioned. 
    Section "InputDevice"
    Identifier "PS/2 Mouse"
    Driver "mouse"
    Option "Protocol" "ExplorerPS/2"
    Option "ZAxisMapping" "6 7"
    Option "Buttons" "7"
    Option "Device" "/dev/psaux"
    Option "SendCoreEvents" "true"
    EndSection
    This article in the wiki is good for getting the forward and back button working as well.
    Surpisingly its lasted alot longer then any of the logitech trackballs I owned before it.  I would usually wear down the ball supports to the point where the ball would stick constantly in five or six months with the logitech balls.  I've had this microsoft ball for about two and a half years now and its still going strong.  I'm sure the fact that I broke my gaming addiction about two years ago has nothing to do with that though
    andy

  • Really annoying issue with templates

    I just bought and installed FCPX. No templates are showing up in the titles, generators and theme browsers.
    Just some effects show up in the effects browser. All templates exist if looking inside the Final Cut Pro.app file.
    Anyone got any idea?

    Just a few thoughts:
    1) Quit FCP X and Trash preferences (this is usually the first thing to try when FCP X misbehaves) - download the free Preference Manager from Digital Rebellion to do this easily
    2) Restore default layout. Go to Window->Revert to Original Layout
    3) Trash the layouts folder (inside ~/Library/Application Support/Final Cut Pro) - to access the (hidden) Library folder in your home folder, hold down the option key when using the Go menu in the Finder.
    4) Trash the application and download it again from the Mac App Store.

  • Issue with creation of a specific field for a java program.

    Hey everyone,
    This is homework which is end of chapter "challenges" to practice what we've learnt.
    The chapter covers inheritance (super class and all things related)
    I'm having quite an annoying issue with the very beginning of the instructions, where it tells me to make the following fields:
    - Employee name
    - Employee number in the format XXX-L , where each X is a digit within the range 0-9 and the L is a letter within the range A-M.
    - Hire date
    This is what I wrote for code so far
    private String name;
    //private WTF
    private String date;I really have no idea what to do for the second field, how to even constrain integers and letters in the same field with a rule for number range and letter range, and that for each character independently, for what I understand.
    Any advice with this? It's blocking me from continuing -_-, because I can't make accessors and mutators and constructors, etc, if i'm still unsure of how the fields unfold.
    Thanks in advance.

    You can create a HireDate class.
    public class HireDate{
       private final int day;
       private final String month;
       private final int year;
       public HireDate(int day, String month, int year){
          this.day = day;
          this.month = month;
          this.year = year;
    }In the HireDate Constructor you could put if statements to ensure that only correct information is present. The fields are final because the hire date will not change. Override the toString() method so that when you print it out it will be in the correct format. Create some getter methods to get the private fields.
    Then in your other class just do this
    HireDate hired = new HireDate(10, July, 1991);Now you have an object that stores all 3 fields for you. You can use the object as you like and when it prints it will be in the format you want.
    Or you could just make hireDate a String variable. That is what I always did and I never lost marks for it. The reason I suggest this way is because you mentioned rules and constraints.

  • [SOLVED] Touchpad issues with Eee 900A, only with Arch.

    Hi guys, posting here because I'm having a hard time tracking down this issue.
    I recently aquired an Eee PC 900A, which I have running the 2-09 arch build no prob, but I'm having one massively annoying issue with the touchpad under X.
    Whenever I lift my finger and replace it on the touchpad, at anything but super slow speed (and sometimes even then), the cursor will jump, an in or so back..
    Now I thought this might be a hardware issue, so I've tried booting into different distros (after trying tons of configs  for the synaptics driver in xorg.conf), and this dosen't occur in the Xandros distro that ships with the Eee, or in Eeebuntu..
    I'm pretty certain it's not a  config issue, Eeebuntu uses hal, I've tried using hal, and dozens of xorg.confs.. I've also tried the zen-eee kernel for the 1000/901's, which is older, and still has the same issue.
    So I'm sure this is a software issue, but I'm not sure which.. It even happens if I dont have the xf86-input-synaptics driver installed.. I'm not going to post my xorg.conf here, because it's irrelevant.. I've tried using tons, including the one that ships with xandros..they all change aspects of the synaptics driver, but none affect this issue.
    Anyone else having this issue? Fixes, suggestions?
    Thanks.
    Last edited by dissimilation (2009-03-03 14:11:31)

    hi guys,
    I had a similar bug on my netbook with the Elantech touchpad. I have reported a bug to the maintainer of the Elantech driver and I get a patch that fix it.
    description of my bug:
    with two fingers above the touchpad, tap alterrnatively with each finger on the touchpad.
    - expected behaviour: the cursor does not move.
    - actual behaviour: the cursor jumps sometimes to the left or the right.
    this only happens when configuring the touchpad with synaptics (by defaults, mine is detected as a mouse)
    is your bug the same than mine ?
    are you using both the proto=exps option and synaptics ? (I still have the bug in this configuration)
    if it is the same bug, I have submited the patched kernel to AUR

  • Having issues with wireless on my iMac

    Hello,
    I have had my iMac since August of 2011 and sometime last year I decided to upgrade to Lion (like maybe a two three months after I got it). The upgrade was rather smooth, with the big exception that ever since I have updated to Lion I have had annoying issues with my Wireless Internet. I know that this is a known issue, but I am hoping to get some answers/assistance... maybe there is something I can do in my particular case.
    Originally the issue was that whenever I turned on the computer from sleep, the Internet was disconnected. Now, I have a been a iMac/Mac Mini user for over 7 years now and I never had such issue, you turn on the computer, the Internet goes on with it too. It would require me to manually connect to the Internet evertime by selecting our Wireless Network from the drop-down menu.
    About, I want to say, two months ago? Apple sent out a fix via Software Update that said it would correct issues with the iMac wireless not turning on when returning from sleep, "Finally!" I thought and I enthusiatically waited for the update to come.... and it came and it just made things worse. It doesn't make me manually connect the Network anymore, but it takes it sweet time connecting (like a minute some times) and other times it will connect and disconnect a few times before not giving any more problems. Oh did I mention sometimes it just decides to turn off for no reason at all? Yeah, happens a lot. Especially annoying when I am excersizing my nerd rights and playing an MMO and suddenly get booted from the game because for whatever reason my Internet decides to log me off.
    This morning, it was connected to the Internet but websites were taking forever to download, eventually Chrome was just giving up and saying it couldn't connect... but the Internet was connected (full bars if it makes any difference). I tried turning Airpor on and off but no dice. Now, this totally sounds like a router issue, except my boyfriend was sitting behind me on his brand-spanking-new HP and he was happily surfing Reddit or whatever he does whilst online, no issues there.
    So the question is: Is it possible to "revert" back to the time before the update? I guess I could use Time Machine, but uhh, I dont want to revert the whole computer. So how exactly would that work (Time Machine noob here)? Is it possible to look at updates done and simply remove? Also, is there a more amicable fix that packing the whole thing up and taking it to the Genius bar? I'm willing to try some DIY fixes as long as they dont involve messing up with the whole network, especially since no other device is having issues, just this one and we have a lot devices.

    If you have a router that can do a 5GHZ network try it. There seems to be less interference in that part of the spectrum.
    Apple DNS Servers:
    208.67.222.222
    208.67.220.220
    Wireless Improvements
    Move the Base Station If interference is particularly bad in one part of your house or office, move the base station to another location. But this can be tricky if your AirPort base station has to connect to the broadband feed coming into the house and that feed happens to enter at a particularly interference-prone spot.
    Use the 5GHz Band Compared with the 2.4GHz band, the 5GHz band is practically empty. The newest AirPort Extreme Base Station is one of the few Wi-Fi base stations designed for home use that work in that 5GHz band. All of Apple’s Core 2 Duo laptops and iMacs (except the discontinued 17-inch 1.87GHz model) can also use the 5GHz band; with the build-to-order wireless option, so can the Mac Pro.
    To switch to the 5GHz band, launch AirPort Utility, select your base station, and switch to Manual Setup. Click on the AirPort button and select the Wireless tab. Select 802.11n Only (5 GHz) from the Radio Mode pop-up menu. Click on the Wireless Options button and select Use Wide Channels. Click on Update to restart the base station.
    Currently, no Mac-compatible adapters enable you to use the 5GHz band in older Macs or with older versions of OS X.

  • Issue with Dynamic Link with Premiere CC and After Effects

    I'm having a strange and annoying issue with Dynamic linked clips in Premiere CC:
    When I render or export my timeline the progress will stall when it hits a dynamic linked clip.  It will stay stalled until I click the After Effects application and make it the active window.  Once that happens the render/export resumes at normal speed. 
    This is annoying as I can't start a render and walk away or work on different windows, I have to babysit all the renders to make sure they go through.
    Has anybody experienced this and know of any solutions? 
    I'm running the latest version of Premiere (7.2.1) and After Effects 12.2.0.52 on Mavericks 10.9.1 with a GTX 770 Video Card.

    Does it still pause if AE is closed completely? I often experience slower AME renders from Premiere over dynamic link material when AE is open. Closing AE speeds things up. Go figure.

  • Issue with Fireworks CS3

    I'm experiencing an annoying issue with Fireworks CS3.
    Immediate use of the application is not available after its opened.
    Meaning, clicking on the application menu more than once returns a
    message in the title bar, &quot;Adobe Fireworks CS3 (Not
    Responding)&quot;, and it hangs there at least 30 seconds or so
    until it's ready to be used. And this is even having Windows Aero
    disabled.
    I recently formatted my computer and have minimal programs
    installed. Here's an overview:
    Windows Vista Business x64
    Intel Core2 Quad CPU @2.40 GHz, 2400 MHz, 4 Cores
    8 GB Memory - DDR2
    500G 8M 7200 SATA II Hard Drives (x2)
    GeForce 8600GT 256M video card
    Office 2007 Ultimate (complete install)
    CS3 Web Standard (less Contribute and Version Cue)
    Acrobat Pro 8.1.1
    iTunes 7.6
    QuickTime 7
    If anyone has an idea why this may be happening, please let
    me know.
    Thanks,
    Mike

    ~Michael wrote:
    > I disabled Windows Firewall and nothing changed. Prior
    to formatting I did have
    > Norton AV 2008 installed, and still experienced the same
    issue with Fireworks.
    > And yes, I'm the administrator on the computer and UAC
    is off. I forgot to
    > mention, I'm only experiencing this issue with
    Fireworks. Everything else opens
    > blazingly fast. Michael
    Clutching at straws here but my last bit of advice would be
    to make sure
    you have the latest NVidia drivers for your graphics card.
    Other than
    that I don't know what else to tell you except that Fireworks
    works
    great for me which of course doesn't help. Maybe a call to
    support would
    get you some more pointed advice are you certainly don't seem
    to be
    alone with this issue although it doesn't affect every Vista
    user.
    FWIW, before I got this machine last July (2007) I ran CS3 on
    an aging
    2001 AMD Athlon 1 GHz machine with 1 GB or Ram (running XP
    Pro). While
    no CS3 (or any other) application was blazingly fast,
    Fireworks was no
    worse than any other. The worst offender for me was
    Illustrator.
    There has to be a combination of hardware, drivers or memory
    resident
    apps that makes it worse for Fireworks somehow but these
    kinds of issues
    are the hadest to troubleshoot. That's why I think getting a
    hold of
    Adobe's official support may help as I hope they are
    gathering data on
    this to hopefully pinpoint a cause for the problem and may
    have some
    more meaningful advice than I or other users here may be able
    to give.
    Stéphane Bergeron
    reach : connect : communicate
    http://www.webfocusdesign.com
    blog : tutorials : articles : gallery
    http://www.pixelyzed.com

  • Issue with Full-Text (FTS) master merge on SQL Server 2012 SP2

    Hi,
    On my current project we have really annoying issue with master merge process that occurs after Full Population of FTS Index.
    Let me describe our process: we have continuous build that setup environment and run unit tests after each commit in our source control. For each run we create new DB (on the same SQL Server) then fill it with test data and run unit tests. Sometimes unit
    tests failed because FTS Index population cannot finish in time.
    We have constantly seeing in [sysprocesses] table lots of sessions with wait type FT_MASTER_MERGE that block our tests
    In FTS log we have following error:
    The master merge started at the end of the full crawl of table or indexed view [TABLENAME] failed with HRESULT = '0x80000049'. Database ID is '45', table id is
    706101556, catalog ID: 5.
    Here is an example of how we create FTS catalog and add table to it (As you can see it's created with auto change tracking together with
    index update in background):
    -- Create FTS catalog
    EXEC sp_fulltext_catalog 'WilcoFTSCatalog', 'create'EXEC sp_fulltext_table 'Users', 'create', 'WilcoFTSCatalog', 'PK_Users'
    EXEC sp_fulltext_column 'Users', 'UserId', 'add'
    EXEC sp_fulltext_column 'Users', 'Name', 'add'
    EXEC sp_fulltext_table 'Users', 'activate'
    EXEC sp_fulltext_table 'Users', 'start_change_tracking'
    EXEC sp_fulltext_table 'Users', 'start_background_updateindex'
    Does anybody know what is the root cause of this issue and what should be done to avoid it?
    Thank you in advance,
    Olena Smoliak

    Hi,
    On my current project we have really annoying issue with master merge process that occurs after Full Population of FTS Index.
    Let me describe our process: we have continuous build that setup environment and run unit tests after each commit in our source control. For each run we create new DB (on the same SQL Server) then fill it with test data and run unit tests. Sometimes unit
    tests failed because FTS Index population cannot finish in time.
    We have constantly seeing in [sysprocesses] table lots of sessions with wait type FT_MASTER_MERGE that block our tests
    In FTS log we have following error:
    The master merge started at the end of the full crawl of table or indexed view [TABLENAME] failed with HRESULT = '0x80000049'. Database ID is '45', table id is
    706101556, catalog ID: 5.
    Here is an example of how we create FTS catalog and add table to it (As you can see it's created with auto change tracking together with
    index update in background):
    -- Create FTS catalog
    EXEC sp_fulltext_catalog 'WilcoFTSCatalog', 'create'EXEC sp_fulltext_table 'Users', 'create', 'WilcoFTSCatalog', 'PK_Users'
    EXEC sp_fulltext_column 'Users', 'UserId', 'add'
    EXEC sp_fulltext_column 'Users', 'Name', 'add'
    EXEC sp_fulltext_table 'Users', 'activate'
    EXEC sp_fulltext_table 'Users', 'start_change_tracking'
    EXEC sp_fulltext_table 'Users', 'start_background_updateindex'
    Does anybody know what is the root cause of this issue and what should be done to avoid it?
    Thank you in advance,
    Olena Smoliak

  • ICal issue with entering email addresses for invitees

    Hi all,
    I am using 10.6.2 and I've got a very annoying issue with iCal (started on 10.5 still, and survived an upgrade to 10.6 and even a fresh reinstall, although I did restore from TM).
    Anyway, what happens is that when I am entering email addresses for invitees in the events, it changes the first letter of the email address to "a". IOW, say I want to type in "[email protected]", it will read "[email protected]", then I have to go and delete the "a" and type in the correct letter. It does this all the time, with the macbook keyboard or the external keyboard. I tried deleting the .plist but it didn't help.
    Any idea how I can fix it?

    At what stage does it change? What happens if you start the email with a capital? What happens if you select the address from the pop-up? What happens if you drag the address across from Address Book?
    AK

Maybe you are looking for

  • Display font in Safari like it is in IE

    Hi. I'm a new mac user. I'm wondering if there's any way to have websites display like you would see them in Internet Explorer or Netscape on a PC in regards to font. I've used macs before and never noticed that pages don't look like I'm use to i.e.

  • Control Activity Level of sound played by flash player

    Hi I create a video player based on flash. A video can be recorded with a different sound level - making some videos with the current volume setting very loud, some very silent. I was searching an API in Flash that allows me to set the volume on the

  • Let me help you

    I can help you about many more thinks.message me.I have the collection of tips.

  • New Tab on Mission Control won't change Wallpaper

    Hey guys so I seem to be having a weird problem. I changed the wallpaper on my computer, but everytime I click a new tab it brings up the old wallpaper I had. I even went as far as to delete the old wallpaper, and made sure that the new one I wanted

  • Poor performance of update

    Hi, I'm having a performance issue with the updates that run on a huge partitioned table. Here are the details - Table_A has 80 million records, it has columns - pk_col (this is primary key), col1 & col2. Table_B is a partitioned table that has a tot