Append() private method

private Append ( string m, ROSOUT_LEVEL lvl ) : void
m string
lvl ROSOUT_LEVEL
return void
Example #1
0
 public static void Info(object o)
 {
     Console.WriteLine("[INFO] " + o);
     if (initialized && rosoutappender == null)
     {
         rosoutappender = new RosOutAppender();
     }
     if (initialized)
     {
         rosoutappender.Append((string)o, RosOutAppender.ROSOUT_LEVEL.INFO);
     }
 }
Example #2
0
 public static void Info(object o, int level = 1)
 {
     Console.WriteLine("[INFO] " + o);
     if (initialized && rosoutappender == null)
     {
         rosoutappender = new RosOutAppender();
     }
     if (initialized)
     {
         rosoutappender.Append(o.ToString(), RosOutAppender.ROSOUT_LEVEL.INFO, level + 1);
     }
 }