title: systemd: how to set default log level for messages on stdout/stderr?
body: <p>I am running an application as a systemd service. Application logs its output to stdout following systemd logging rules - prepending each log message with &lt;x&gt; where x is priority (log level).</p>
  
  <pre><code>&lt;6&gt; this is info
  &lt;7&gt; this is debug
  &lt;4&gt; this is warning
  </code></pre>
  
  <p>What I want is to store only priority &lt;= 6 to journal because I run on flashdisk. I don't wan't to store debug messages and also messages/"trash" that is not marked with &lt;>.</p>
  
  <p>Seems not to be a problem - MaxLevelStore=info.</p>
  
  <p>BUT - the problem is that that "trash" written to stdout is marked as priority=6 (info) by default and is also stored inside journal db. What I want is to mark it as debug (7) by default, so from following output:</p>
  
  <pre><code>&lt;6&gt; this is info
  &lt;7&gt; this is debug
  this is some trash
  &lt;4&gt; this is warning
  </code></pre>
  
  <p>... will only ...</p>
  
  <pre><code>&lt;6&gt; this is info
  &lt;4&gt; this is warning
  </code></pre>
  
  <p>... be stored to journal.</p>
  
  <p>Can't find in all docs I have if/how is this possible. Anybody?</p>
  
  <p>Thank you</p>