Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li>Your first statement....</li> </ol> <blockquote> <p>"While creating an example using Java and the com.alvazan.orm.api library, the use of "System.out.println" is prohibited."</p> </blockquote> <p>In general, no one uses in System.out.println. Hibernate does not, JBoss does not, tomcat does not. They all use a logging framework so you can configure each and every log in production and each company using tomcat or jboss or hibernate can configure it differently. If these programs use System.out.println, customers would have no control and your server would ALWAYS run slow as you NEVER want "all" logging and there is no way to turn System.out.println's off!!!!! they are always on. log.info can be turned off and on.</p> <p>The most complete answer on configuring logback can be found in their documentation</p> <p><a href="http://logback.qos.ch/manual/configuration.html" rel="nofollow">http://logback.qos.ch/manual/configuration.html</a></p> <blockquote> <p>Just clarifying that all information is typed into the logback.xml file?</p> </blockquote> <p>I am not sure what you mean by this question. logback.xml is the configuration for a logging library called logback which you can find at the link above.</p> <pre><code>Is there a diffrent file to use(other than logback.xml)? </code></pre> <p>logback has other options like a groovy file to configure it, but playOrm is using only logback.xml though any client can decide what configuration file they use since playOrm discards the logback.xml file that is checked in when delivering to other projects.</p> <pre><code>Or is the end-user to use, for instance, "com.alvazan.test.FactorySingleton createFactory"; and "com.impetus.annovention.ClasspathDiscoverer processFile"? </code></pre> <p>I am very confused by this question. The end user should not be using FactorySingleton(neither directly nor indirectly AND that class is not even in the jar because it's in the test package). The end-user will be using ClasspathDiscoverer only indirectly...in fact, end-user won't even know about these classes.</p> <pre><code>Finalizing this question, is the file path for the preceeding necessary? </code></pre> <p>Are you trying to ask is the file path in logback.xml necessary? If you want to know more about how logback works, you need to read alot of the documentation. Basically, you can do stuff like com.alvazan level=WARN to turn any classes in com.alvazan.<em>*</em>* to warn level(This is recursive and applies to children, grandchildren, etc. etc.). The ROOT logger is always defined as well in logback.xml and is the level for ALL classes in a all packages unless overridden.</p> <p>yes, the root logger in playorm is set to warn.</p> <p>At the bottom of the picture you show(your picture is cut off so not in that picture), there is a "source" tab and you may want to click that to view the xml better and it would match up with logback's documentation better as well. Here is a link to the file I bet you are looking at..</p> <p><a href="https://github.com/deanhiller/playorm/blob/486079cfefbd2b4b79e99652b24c146572663dda/input/javasrc/logback.xml" rel="nofollow">https://github.com/deanhiller/playorm/blob/486079cfefbd2b4b79e99652b24c146572663dda/input/javasrc/logback.xml</a></p> <p>root logger is clearly set to info and could be set to warn if you want. </p> <p>So, what do you want. Do you want those two log statements to go away and be turned off? Do you want ALL log statements to be turned off except WARN?</p> <p>If you want all to be turned off in ALL software libraries, just change the root logger to "WARN". If you want to turn just FactorySingleton off you can add this line</p> <pre><code>&lt;logger name="com.alvazan.test.FactorySingleton" level=""WARN"/&gt; </code></pre> <p>If you want all of com.alvazan logging turned off instead of just everything in com.alvazan.orm as you also want com.alvazan.test off as well, BUT you want all other libraries to still be on(BUT always want WARN on which you generally should want), then you could change this</p> <pre><code>&lt;logger name="com.alvazan.orm" level=""WARN"/&gt; </code></pre> <p>to the following instead</p> <pre><code>&lt;logger name="com.alvazan" level=""WARN"/&gt; </code></pre> <p>Your best bet to understand logback though is to read logback documentation.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload