/* SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later */ /* Copyright 2010, SIL International, All rights reserved. */ #pragma once
/** Start logging all segment creation and updates on the provided face. This *isloggedtoaJSONfile,see"SegmentJSONSchema.txt"foraprecise *definitionofthefile * *@returntrueifthefilewassuccessfullycreatedandloggingiscorrectly *initialised. *@paramfacethegr_facewhosesegmentsyouwanttologtothegivenfile *@paramlog_pathautf8encodedfilenameandpathtologto.
*/
GR2_API bool gr_start_logging(gr_face * face, constchar *log_path);
/** Stop logging on the given face. This will close the log file created by *gr_start_logging. * *@paramfacethegr_facewhosesegmentsyouwanttostoplogging
*/
GR2_API void gr_stop_logging(gr_face * face);
/** Start logging to a FILE object. *Thisfunctionisdeprecatedasof1.2.0,usethe_faceversionsinstead. * *@returnTrueonsuccess *@paramlogfileFILEreferencetooutputloggingto *@parammaskWhataspectsofloggingtoreport(ignored)
*/
GR2_API bool graphite_start_logging(FILE * logFile, GrLogMask mask); //may not do anthing if disabled in the implementation of the engine.
/** Stop logging to a FILE object. *Thisfunctionisdeprecatedasof1.2.0,usethe_faceversionsinstead.
*/
GR2_API void graphite_stop_logging();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.