Coder Social home page Coder Social logo

newline about django-log-viewer HOT 6 CLOSED

agusmakmun avatar agusmakmun commented on July 1, 2024 5
newline

from django-log-viewer.

Comments (6)

agusmakmun avatar agusmakmun commented on July 1, 2024 1

ok thanks @ashok-rai, seems your logs not using double [ and ] to present the log format:
https://github.com/agusmakmun/django-log-viewer/blob/master/log_viewer_demo/log_viewer_demo/logger.py#L17

"[%(levelname)s] %(asctime)s %(name)s: %(message)s"

/|\           /|\

to remember that we have pattern in settings as well:

LOG_VIEWER_PATTERNS = ['[INFO]', '[DEBUG]', '[WARNING]', '[ERROR]', '[CRITICAL]']

so, you need to make sure both setup are corrects.

from django-log-viewer.

ashok-rai avatar ashok-rai commented on July 1, 2024 1

Thank you @agusmakmun, this solves the issues.Now, it is working as expected.

from django-log-viewer.

agusmakmun avatar agusmakmun commented on July 1, 2024

Hello @zszep for reporting this issue, seems like happen because of "Not Found" exclude.
meanwhile, I modify that exclude to the settings, but by default is None;

LOG_VIEWER_EXCLUDE_TEXT_PATTERN = None  # String regex expression to exclude the log from line

can you please upgrade your package which following this command:

pip install django-log-viewer --upgrade

Please tell us what happen after doing upgrade, is it resolved the issue or not.

cc @tulgaab, @ananasn, @Radialmed, @ashok-rai, @jamol1741

from django-log-viewer.

ashok-rai avatar ashok-rai commented on July 1, 2024

No, It has not changed the log entries in the new iterable row as displayed in the documentation.
@agusmakmun, Is there any extra setup that we are missing to make the log entries in new lines as shown in the image

from django-log-viewer.

agusmakmun avatar agusmakmun commented on July 1, 2024

@ashok-rai can you show me the screenshot of your logs? or you can paste the plain of logs here, so I can identify.

from django-log-viewer.

ashok-rai avatar ashok-rai commented on July 1, 2024

@agusmakmun,

This is my log file
Screen Shot 2022-08-29 at 11 51 51 AM

And, this is the log_viewer UI which doesnot show the log entries with each new lines in the log file

Screen Shot 2022-08-29 at 11 51 44 AM

from django-log-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.