Community
    • Login

    User defined language for customs logs

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 3.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lao HuL Offline
      Lao Hu
      last edited by

      Hello,
      I’m wondering what is the best way to format the text of a custom log file (generated by my application) that look like this (comma-separated: Date;Time;Type (DEBUG, COMMAND, INFO, ERROR, etc…);Message):

      2018-10-14;23:44:20;DEBUG;printing 218 lines
      2018-10-14;23:44:20;COMMAND;w:1b7608r:c700
      2018-10-14;23:44:20;DEBUG;printing 199 lines
      2018-10-14;23:44:20;COMMAND;w:1b7608r:b100
      2018-10-14;23:44:20;DEBUG;printing 177 lines
      2018-10-14;23:44:20;COMMAND;w:1b7608r:9b00
      2018-10-14;23:44:20;DEBUG;printing 155 lines
      2018-10-14;23:44:20;COMMAND;w:1b7608r:8400
      2018-10-14;23:44:20;DEBUG;printing 132 lines
      2018-10-14;23:44:20;COMMAND;w:1b7608r:6e00

      My intention is to colored each line according with the log type (DEBUG, COMMAND, INFO, …).

      I appreciated any suggestions.

      Thanks

      Lao Hu

      PS: BTW, I think the editor is wonderful!

      1 Reply Last reply Reply Quote 0
      • Terry RT Offline
        Terry R
        last edited by

        Hello @Lao-Hu
        I don’t use UDL myself but there is documentation for defining a custom UDL for Notepad++.

        https://ivan-radic.github.io/udl-documentation/

        would be a good location to start with.
        There are also several posts related to UDL. You could do a search (use the magnifying icon at top of the page, near centre), to locate them for additional reading.

        Terry

        1 Reply Last reply Reply Quote 2
        • Lao HuL Offline
          Lao Hu
          last edited by

          Hi Terry,
          Thanks for taking time to reply and give the suggestions.
          The documentation was very useful. I got pretty good results.
          https://ibb.co/ecjwFf
          I’m still playing around the configuration. Perhaps, I will change the log format to be notepad friendly.
          Lao Hu

          1 Reply Last reply Reply Quote 2

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors