Wanted: Quick way to view error_log in Windows
Results 1 to 12 of 12

Thread: Wanted: Quick way to view error_log in Windows

  1. #1
    Un Re Member cretaceous's Avatar
    Join Date
    Sep 2004
    Location
    London UK
    Posts
    934

    Wanted: Quick way to view error_log in Windows

    Every time I want to view one of these on my PC (copied from a web server) I have to double click it and then choose from a palette of programs which one to open it with.

    I can't do a right click and 'open with' and since it doesn't have a 3 letter extension Windows has no idea what to do with it.

    Any way to assign it to a text editor to open?

  2. #2
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Thrilled To Be Here"
    Posts
    21,771
    A lot of text editors would happily open any file you drag into its window.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  3. #3
    Un Re Member cretaceous's Avatar
    Join Date
    Sep 2004
    Location
    London UK
    Posts
    934
    ah damn - blinded to the obvious - thanks
    (I did wonder if I should put this in Windows help)

  4. #4
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,349
    Additionally, if it's the lack of a file extension holding you back... why not give the file an extension?

  5. #5
    Un Re Member cretaceous's Avatar
    Join Date
    Sep 2004
    Location
    London UK
    Posts
    934
    Typing the extension is a pain .. and then Windows shows you the box "Are you sure you want to change the extension - this might make the file unusable"
    I just want to click the file and open it. I can't even drag it into my php editor - that thinks it's getting an image.
    What I can do is drag it onto the program icon - better than nothing - at least when the icon isn't behind multiple windows.

  6. #6
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,349
    Quote Originally Posted by cretaceous View Post
    Typing the extension is a pain
    Not if you rename "error_log" to "error.log" - same number of characters!

    Quote Originally Posted by cretaceous View Post
    then Windows shows you the box "Are you sure you want to change the extension - this might make the file unusable"
    Aye, that's one error I wish I could turn off. I barely ever see it any more; after hitting F2 to rename a file, I always finish the rename operation with a double enter in quick succession to confirm the "Yes, Windows, I'm not my 73 year-old-grandmother, I know what I'm doing - please get out of my way you overly cautious and distrusting twerp" dialog.

    Quote Originally Posted by cretaceous View Post
    I just want to click the file and open it. I can't even drag it into my php editor - that thinks it's getting an image.
    Apparently there is actually a way to do this; this page discusses how to associate all extensionless files with a specific program (ironically enough, it's regarding the same issue - a "error_log" file).

    Me being the power user I am, I just skipped straight to tinkering with the registry. If you create the key [HKEY_CLASSES_ROOT\.] and modify the (Default) value to be "txtfile", all extensionless files will be treated as text files (e.g. the default type for .txt files) and be opened with the relevant default program.

    Quote Originally Posted by cretaceous View Post
    What I can do is drag it onto the program icon - better than nothing - at least when the icon isn't behind multiple windows.
    I've solved that last bit by pinning Vim (my text editor of choice) to my taskbar (I'm using Win7).

  7. #7
    Un Re Member cretaceous's Avatar
    Join Date
    Sep 2004
    Location
    London UK
    Posts
    934
    good thinking on the underscore to dot Mr G - for some reason that doesn't show me the the warning dialog either

    but that's a cool link... reg hack here I come...

  8. #8
    Senior Member
    Join Date
    Mar 2009
    Location
    Canada
    Posts
    794
    I just went into my php.ini file and set my error log to be error.txt. Notepad happily opens it without delay.
    Prison of Mirrors
    Declare variables, not war.

  9. #9
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,621
    Quote Originally Posted by Bonesnap View Post
    I just went into my php.ini file and set my error log to be error.txt. Notepad happily opens it without delay.
    And you, Bonesnap, win the bananas today
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  10. #10
    Senior Member
    Join Date
    Mar 2009
    Location
    Canada
    Posts
    794
    I love bananas!
    Prison of Mirrors
    Declare variables, not war.

  11. #11
    Un Re Member cretaceous's Avatar
    Join Date
    Sep 2004
    Location
    London UK
    Posts
    934
    That's not fair - thread starter should get a banana - or a grape at least..

  12. #12
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,621
    We'll think about sending you one after you adjust your INI file

    But I bet we can find a grape or two regardless ...
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •