MiniLogger.st
changeset 24559 4fa0f7bad264
parent 24508 0b2cc77b316f
child 24776 d375feebf938
equal deleted inserted replaced
24558:de28b94b9466 24559:4fa0f7bad264
   173     with %2: secerity (area)
   173     with %2: secerity (area)
   174     with %3: timestamp 
   174     with %3: timestamp 
   175     with %4: caller/originator 
   175     with %4: caller/originator 
   176     with %5: message"
   176     with %5: message"
   177     
   177     
   178     ^ LogFormat ? '%1 [%2] (%3): %5'
   178     ^ LogFormat ? '%3 %1 [%2]: %5'
   179 
   179 
   180     "
   180     "
   181      MiniLogger logFormat:'%1 [%2]: %5'.
   181      MiniLogger logFormat:'%1 [%2]: %5'.
   182      'hello' errorPrintCR.
   182      'hello' errorPrintCR.
   183      MiniLogger logFormat:'%3 %1 [%2]: %5'.
   183      MiniLogger logFormat:'%3 %1 [%2]: %5'.
   252 
   252 
   253 timestampFormat
   253 timestampFormat
   254     "will be used for the log message"
   254     "will be used for the log message"
   255     
   255     
   256     ^ TimestampFormat ? '%(year)-%(mon)-%(day) %h:%m:%s.%i'.
   256     ^ TimestampFormat ? '%(year)-%(mon)-%(day) %h:%m:%s.%i'.
       
   257 
       
   258     "
       
   259      Timestamp now printStringFormat:(self timestampFormat)
       
   260     "
   257 !
   261 !
   258 
   262 
   259 timestampFormat:aTimestampFormatString
   263 timestampFormat:aTimestampFormatString
   260     "will be used for the log message"
   264     "will be used for the log message"
   261     
   265