Coder Social home page Coder Social logo

korakaagaz's People

Contributors

abhisheksaran avatar badalgeebin avatar chandana-sree-krishna avatar cold-rex avatar convict-git avatar himanshu2047 avatar iamrakesh28 avatar madhav237 avatar muhammedyaseen-git avatar prudhvis-gitrepo avatar rahul-r5 avatar rathoredevansh08 avatar sahul343 avatar sai-deekshith16 avatar sajithkumar293 avatar sakshi1603 avatar satchit24 avatar shiva-6 avatar shiva-santhosh avatar shivadhanushk avatar sravand123 avatar sunny117 avatar ty01khan avatar tymefighter avatar wildcat26 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

korakaagaz's Issues

change check for console technique used

currently, ConsoleLogger checks if a console exists using null == System.console()
while this is fine, it could be made better

System.console returns true only if both input and output streams are present. Console logger requires only an output stream to be present
System.console method also fails inside IDEs because Eclipse Console View is not identified by Java as a valid Console object (a related discussion can be found at this Stack Overflow question)

better checks in File and Console Logger constructors

currently, we have a enabledLogLevelsList List passed to the constructors of File and Console Loggers that contains info regarding enabling/disabling log levels in console and file loggers

there is also a safety check that checks whether this variable is actually a null object or not
this is actually not necessary as the constructor is passed atleast an empty list
one could also add a check for empty list

Class Cast exception in loggerManager

Log:
Exception in thread "main" java.lang.ClassCastException: class com.sun.xml.internal.stream.events.StartElementEvent cannot be cast to class javax.xml.stream.events.Characters (com.sun.xml.internal.stream.events.StartElementEvent and javax.xml.stream.events.Characters are in module java.xml of loader 'bootstrap')
at java.xml/com.sun.xml.internal.stream.events.DummyEvent.asCharacters(DummyEvent.java:115)
at korakaagaz/infrastructure.validation.logger.LoggerManager.configFileToParse(LoggerManager.java:123)
at korakaagaz/infrastructure.validation.logger.LoggerManager.(LoggerManager.java:66)
at korakaagaz/infrastructure.validation.logger.LoggerFactory.getLoggerInstance(LoggerFactory.java:33)
at korakaagaz/infrastructure.validation.testing.TestHarness.runByName(TestHarness.java:324)
at korakaagaz/infrastructure.validation.testing.runner.main(runner.java:8)

Test harness and logger is the environment. The test harness is initialised by a main function. The exception occurs when the test harness tries to get a logger instance.

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.